@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.
@@ -41709,12 +41709,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41709
41709
  }
41710
41710
  if (!this.selectedThread) {
41711
41711
  this.selectedThread = this.mails[0];
41712
- return;
41712
+ if (this.selectedThread) {
41713
+ return this.mailSelected();
41714
+ }
41713
41715
  }
41714
41716
  const st = this.mails.find(x => x.mailboxID === this.selectedThread.mailboxID && x.emailAddressID === this.selectedThread.emailAddressID);
41715
- if (st !== this.selectedThread) {
41717
+ if (st && st !== this.selectedThread) {
41716
41718
  this.selectedThread = st;
41719
+ } else {
41720
+ this.selectedThread = this.mails[0];
41717
41721
  }
41722
+ return this.mailSelected();
41718
41723
  });
41719
41724
  }
41720
41725
  mailSelected() {