|
|
@ -115,7 +115,7 @@ class pEpForThunderbird extends pEp { |
|
|
|
MailServices.mfn.addListener(this, Ci.nsIMsgFolderNotificationService.msgAdded); |
|
|
|
|
|
|
|
// Check adapter version.
|
|
|
|
const MIN_REQUIRED_VERSION = "0.22.0"; |
|
|
|
const MIN_REQUIRED_VERSION = "0.22.1"; |
|
|
|
let version = this.synchronise(this.serverVersion()); |
|
|
|
this.log.info(`Adapter version ${version.api_version} (${version.name})`); |
|
|
|
let win = Services.wm.getMostRecentWindow("mail:3pane"); |
|
|
@ -165,6 +165,7 @@ class pEpForThunderbird extends pEp { |
|
|
|
TbSync.setupSync(this); |
|
|
|
|
|
|
|
// Communicate all own identities to the engine.
|
|
|
|
this.synchronise(this.disable_all_sync_channels()); |
|
|
|
for (let identity of fixIterator(MailServices.accounts.allIdentities, Ci.nsIMsgIdentity)) { |
|
|
|
this.identityKeys.push(identity.key); |
|
|
|
this.identityEmails.push(identity.email); |
|
|
@ -173,8 +174,6 @@ class pEpForThunderbird extends pEp { |
|
|
|
this.synchronise(this.myself(id)); |
|
|
|
if (id.enableSync) { |
|
|
|
this.synchronise(this.enableIdentityForSync(id)); |
|
|
|
} else { |
|
|
|
this.synchronise(this.disableIdentityForSync(id)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|