@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.
@@ -24385,7 +24385,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24385
24385
  return FetchBuilder.get(path).asText();
24386
24386
  }))();
24387
24387
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
24388
- var _a, _b, _c, _d, _e, _f, _g;
24388
+ var _a, _b, _c, _d, _e, _f;
24389
24389
  if (!value) {
24390
24390
  e.innerHTML = "";
24391
24391
  return;
@@ -24504,13 +24504,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24504
24504
  if (included) {
24505
24505
  (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
24506
24506
  }
24507
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_g = thread.email) === null || _g === void 0 ? void 0 : _g.senderID)) {
24508
- const timeRead = DateTime.now;
24509
- thread.timeRead = timeRead;
24510
- const es = c.app.resolve(EntityService);
24511
- es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
24512
- CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
24513
- }, console.error);
24507
+ if (thread && !thread.timeRead && thread.mailboxID) {
24508
+ setTimeout(() => {
24509
+ if (!e.isConnected) {
24510
+ return;
24511
+ }
24512
+ const timeRead = DateTime.now;
24513
+ thread.timeRead = timeRead;
24514
+ const es = c.app.resolve(EntityService);
24515
+ es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
24516
+ CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
24517
+ }, console.error);
24518
+ }, 1000);
24514
24519
  }
24515
24520
  if (window.previewMode) {
24516
24521
  e.appendChild(container);