Browse Source

Drive-by repair for beta compatibility: Sync messages weren't properly deleted.

master
Jörg Knobloch 11 months ago
parent
commit
13bbce67ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      addon/content/pEpForThunderbird.js

+ 2
- 2
addon/content/pEpForThunderbird.js View File

@ -259,7 +259,7 @@ class pEpForThunderbird extends pEp {
this.searchListener = {
onSearchHit(msgHdr, folder) {
if (new Date(Date.now() - msgHdr.date / 1000) >= 600 * 1000) {
if (this.MOZ_APP_VERSION >= 85) {
if (controller.MOZ_APP_VERSION >= 85) {
this.msgs.push(msgHdr);
} else {
this.msgs.appendElement(msgHdr);
@ -272,7 +272,7 @@ class pEpForThunderbird extends pEp {
if (this.count) inbox.deleteMessages(this.msgs, null, true, false, null, false);
},
onNewSearch() {
if (this.MOZ_APP_VERSION >= 85) {
if (controller.MOZ_APP_VERSION >= 85) {
this.msgs = [];
} else {
this.msgs = Cc["@mozilla.org/array;1"].createInstance(Ci.nsIMutableArray);


Loading…
Cancel
Save