@social-mail/social-mail-client 1.8.287 → 1.8.288

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.
@@ -38330,12 +38330,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
38330
38330
  }
38331
38331
  if (!this.selectedThread) {
38332
38332
  this.selectedThread = this.mails[0];
38333
- return;
38333
+ if (this.selectedThread) {
38334
+ return this.mailSelected();
38335
+ }
38334
38336
  }
38335
38337
  const st = this.mails.find(x => x.mailboxID === this.selectedThread.mailboxID && x.emailAddressID === this.selectedThread.emailAddressID);
38336
- if (st !== this.selectedThread) {
38338
+ if (st && st !== this.selectedThread) {
38337
38339
  this.selectedThread = st;
38340
+ } else {
38341
+ this.selectedThread = this.mails[0];
38338
38342
  }
38343
+ return this.mailSelected();
38339
38344
  });
38340
38345
  }
38341
38346
  mailSelected() {