@social-mail/social-mail-client 1.8.361 → 1.8.362

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.
@@ -28595,7 +28595,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28595
28595
  return FetchBuilder.get(path).asText();
28596
28596
  }))();
28597
28597
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
28598
- var _a, _b, _c, _d, _e, _f, _g;
28598
+ var _a, _b, _c, _d, _e, _f;
28599
28599
  if (!value) {
28600
28600
  e.innerHTML = "";
28601
28601
  return;
@@ -28714,13 +28714,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28714
28714
  if (included) {
28715
28715
  (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
28716
28716
  }
28717
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_g = thread.email) === null || _g === void 0 ? void 0 : _g.senderID)) {
28718
- const timeRead = DateTime.now;
28719
- thread.timeRead = timeRead;
28720
- const es = c.app.resolve(EntityService);
28721
- es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
28722
- CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
28723
- }, console.error);
28717
+ if (thread && !thread.timeRead && thread.mailboxID) {
28718
+ setTimeout(() => {
28719
+ if (!e.isConnected) {
28720
+ return;
28721
+ }
28722
+ const timeRead = DateTime.now;
28723
+ thread.timeRead = timeRead;
28724
+ const es = c.app.resolve(EntityService);
28725
+ es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
28726
+ CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
28727
+ }, console.error);
28728
+ }, 1000);
28724
28729
  }
28725
28730
  if (window.previewMode) {
28726
28731
  e.appendChild(container);