@social-mail/social-mail-client 1.2.776 → 1.2.777

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.
Files changed (43) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +5 -7
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +2 -2
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/model/model.d.ts +1 -0
  6. package/dist/model/model.d.ts.map +1 -1
  7. package/dist/model/model.js +2 -1
  8. package/dist/model/model.js.map +1 -1
  9. package/dist/public/channel/ChannelApp.pack.js +5 -7
  10. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  11. package/dist/public/channel/ChannelApp.pack.min.js +2 -2
  12. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  13. package/dist/public/channel/ChannelView.pack.js +5 -7
  14. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  15. package/dist/public/channel/ChannelView.pack.min.js +2 -2
  16. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  17. package/dist/public/preview/zip/DownloadZip.pack.js +2 -1
  18. package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
  19. package/dist/public/preview/zip/DownloadZip.pack.min.js +1 -1
  20. package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
  21. package/dist/public/store/StoreApp.pack.js +2 -1
  22. package/dist/public/store/StoreApp.pack.js.map +1 -1
  23. package/dist/public/store/StoreApp.pack.min.js +1 -1
  24. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  25. package/dist/public/store/cart/ShoppingCart.pack.js +2 -1
  26. package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
  27. package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
  28. package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
  29. package/dist/site-editor-app/SiteEditorApp.pack.js +5 -7
  30. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  31. package/dist/site-editor-app/SiteEditorApp.pack.min.js +2 -2
  32. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/dist/web/AppIndex.pack.js +5 -7
  35. package/dist/web/AppIndex.pack.js.map +1 -1
  36. package/dist/web/AppIndex.pack.min.js +2 -2
  37. package/dist/web/AppIndex.pack.min.js.map +1 -1
  38. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  39. package/dist/web/page/mails/service/ConversationService.js +3 -6
  40. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/model/model.ts +3 -2
  43. package/src/web/page/mails/service/ConversationService.tsx +7 -8
@@ -16910,7 +16910,8 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
16910
16910
  "relatedName": "MailboxContact"
16911
16911
  }],
16912
16912
  "actions": {
16913
- "getBody": "external"
16913
+ "getBody": "external",
16914
+ "markAsRead": "external"
16914
16915
  }
16915
16916
  }));
16916
16917
  modelEntitySchemas["MailboxContactEmail"] = MailboxContactEmail;
@@ -30268,14 +30269,11 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
30268
30269
  const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
30269
30270
  (root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
30270
30271
  }
30271
- if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_d = thread.email) === null || _d === void 0 ? void 0 : _d.senderID)) {
30272
+ if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_d = thread.email) === null || _d === void 0 ? void 0 : _d.senderID)) {
30272
30273
  const timeRead = DateTime.now;
30273
30274
  thread.timeRead = timeRead;
30274
- const control = AtomControl.from(e);
30275
- const entityService = control.app.resolve(EntityService);
30276
- entityService.save(MailboxContactEmail.patch(thread, {
30277
- timeRead
30278
- })).then(() => {
30275
+ const es = c.app.resolve(EntityService);
30276
+ es.run(MailboxContactEmail, "markAsRead", thread).asJson().then(() => {
30279
30277
  CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
30280
30278
  }, console.error);
30281
30279
  }