@social-mail/social-mail-client 1.0.32 → 1.0.34

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.
@@ -23401,7 +23401,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23401
23401
  var _a, _b;
23402
23402
  return __awaiter(this, void 0, void 0, function* () {
23403
23403
  const parse = JSON.parse(email.headers);
23404
- const emailAddressText = (_b = (_a = parse.replyTo) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : this.parameters.emailAddress.emailAddress;
23404
+ const emailAddressText = (_b = (_a = parse === null || parse === void 0 ? void 0 : parse.replyTo) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : this.parameters.emailAddress.emailAddress;
23405
23405
  const child = Email.create({
23406
23406
  senderID: this.parameters.mailboxID,
23407
23407
  subject: "Re: " + email.subject,
@@ -23479,6 +23479,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23479
23479
  this.mails = [];
23480
23480
  this.search = "";
23481
23481
  this.selectedThread = null;
23482
+ this.previousThread = null;
23482
23483
  this.version = 1;
23483
23484
  }
23484
23485
  init() {
@@ -23547,10 +23548,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23547
23548
  });
23548
23549
  }
23549
23550
  mailSelected() {
23551
+ var _a;
23550
23552
  return __awaiter(this, void 0, void 0, function* () {
23551
23553
  if (!this.selectedThread) {
23552
23554
  return;
23553
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;
23554
23560
  this.openDetail(ConversationPage, this.selectedThread);
23555
23561
  });
23556
23562
  }