mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Bug 342632 - Allow defaultAccount to return success with nullptr result when there is no usable account.
Tag #1273
This commit is contained in:
parent
07b587d4ed
commit
af2693fe73
11 changed files with 121 additions and 101 deletions
|
|
@ -224,10 +224,12 @@
|
|||
let identitiesRaw = MailServices.accounts
|
||||
.getIdentitiesForServer(gFilterList.folder.server);
|
||||
let identities = Array.from(this.fixIterator(identitiesRaw,
|
||||
Components.interfaces.nsIMsgIdentity));
|
||||
Ci.nsIMsgIdentity));
|
||||
|
||||
if (!identities.length) // typically if this is Local Folders
|
||||
identities.push(MailServices.accounts.defaultAccount.defaultIdentity);
|
||||
if (identities.length == 0) { // typically if this is Local Folders
|
||||
if (MailServices.accounts.defaultAccount)
|
||||
identities.push(MailServices.accounts.defaultAccount.defaultIdentity);
|
||||
}
|
||||
|
||||
let templateFound = false;
|
||||
let foldersScanned = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue