@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.
@@ -24172,7 +24172,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24172
24172
  return FetchBuilder.get(path).asText();
24173
24173
  }))();
24174
24174
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
24175
- var _a, _b, _c, _d, _e, _f, _g;
24175
+ var _a, _b, _c, _d, _e, _f;
24176
24176
  if (!value) {
24177
24177
  e.innerHTML = "";
24178
24178
  return;
@@ -24291,13 +24291,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24291
24291
  if (included) {
24292
24292
  (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
24293
24293
  }
24294
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_g = thread.email) === null || _g === void 0 ? void 0 : _g.senderID)) {
24295
- const timeRead = DateTime.now;
24296
- thread.timeRead = timeRead;
24297
- const es = c.app.resolve(EntityService);
24298
- es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
24299
- CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
24300
- }, console.error);
24294
+ if (thread && !thread.timeRead && thread.mailboxID) {
24295
+ setTimeout(() => {
24296
+ if (!e.isConnected) {
24297
+ return;
24298
+ }
24299
+ const timeRead = DateTime.now;
24300
+ thread.timeRead = timeRead;
24301
+ const es = c.app.resolve(EntityService);
24302
+ es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
24303
+ CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
24304
+ }, console.error);
24305
+ }, 1000);
24301
24306
  }
24302
24307
  if (window.previewMode) {
24303
24308
  e.appendChild(container);