@social-mail/social-mail-client 1.0.31 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23110,7 +23110,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23110
23110
  files,
23111
23111
  extra
23112
23112
  }) {
23113
+ var _a;
23114
+ var _b;
23113
23115
  return __awaiter(this, void 0, void 0, function* () {
23116
+ (_a = (_b = this.model).attachments) !== null && _a !== void 0 ? _a : _b.attachments = [];
23114
23117
  for (const iterator of files) {
23115
23118
  this.model.attachments.add(EmailAttachment.create({
23116
23119
  appFileID: iterator.appFileID,
@@ -23476,6 +23479,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23476
23479
  this.mails = [];
23477
23480
  this.search = "";
23478
23481
  this.selectedThread = null;
23482
+ this.previousThread = null;
23479
23483
  this.version = 1;
23480
23484
  }
23481
23485
  init() {
@@ -23544,10 +23548,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23544
23548
  });
23545
23549
  }
23546
23550
  mailSelected() {
23551
+ var _a;
23547
23552
  return __awaiter(this, void 0, void 0, function* () {
23548
23553
  if (!this.selectedThread) {
23549
23554
  return;
23550
23555
  }
23556
+ if (((_a = this.previousThread) === null || _a === void 0 ? void 0 : _a.emailAddressID) === this.selectedThread.emailAddressID) {
23557
+ return;
23558
+ }
23559
+ this.previousThread = this.selectedThread;
23551
23560
  this.openDetail(ConversationPage, this.selectedThread);
23552
23561
  });
23553
23562
  }