@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.
@@ -29197,7 +29197,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29197
29197
  return FetchBuilder.get(path).asText();
29198
29198
  }))();
29199
29199
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
29200
- var _a, _b, _c, _d, _e, _f, _g;
29200
+ var _a, _b, _c, _d, _e, _f;
29201
29201
  if (!value) {
29202
29202
  e.innerHTML = "";
29203
29203
  return;
@@ -29316,13 +29316,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
29316
29316
  if (included) {
29317
29317
  (root !== null && root !== void 0 ? root : e).setAttribute("hide-media", "1");
29318
29318
  }
29319
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_g = thread.email) === null || _g === void 0 ? void 0 : _g.senderID)) {
29320
- const timeRead = DateTime.now;
29321
- thread.timeRead = timeRead;
29322
- const es = c.app.resolve(EntityService);
29323
- es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
29324
- CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
29325
- }, console.error);
29319
+ if (thread && !thread.timeRead && thread.mailboxID) {
29320
+ setTimeout(() => {
29321
+ if (!e.isConnected) {
29322
+ return;
29323
+ }
29324
+ const timeRead = DateTime.now;
29325
+ thread.timeRead = timeRead;
29326
+ const es = c.app.resolve(EntityService);
29327
+ es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
29328
+ CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
29329
+ }, console.error);
29330
+ }, 1000);
29326
29331
  }
29327
29332
  if (window.previewMode) {
29328
29333
  e.appendChild(container);