@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.
@@ -41464,12 +41464,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41464
41464
  }
41465
41465
  if (!this.selectedThread) {
41466
41466
  this.selectedThread = this.mails[0];
41467
- return;
41467
+ if (this.selectedThread) {
41468
+ return this.mailSelected();
41469
+ }
41468
41470
  }
41469
41471
  const st = this.mails.find(x => x.mailboxID === this.selectedThread.mailboxID && x.emailAddressID === this.selectedThread.emailAddressID);
41470
- if (st !== this.selectedThread) {
41472
+ if (st && st !== this.selectedThread) {
41471
41473
  this.selectedThread = st;
41474
+ } else {
41475
+ this.selectedThread = this.mails[0];
41472
41476
  }
41477
+ return this.mailSelected();
41473
41478
  });
41474
41479
  }
41475
41480
  mailSelected() {