@social-mail/social-mail-client 1.2.538 → 1.2.539

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.
@@ -28623,7 +28623,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28623
28623
  }],
28624
28624
  execute: function () {
28625
28625
  _export("renderMail", renderMail = AtomControl.registerProperty("data-html", "html", (c, e, value) => {
28626
- var _a, _b;
28626
+ var _a, _b, _c;
28627
28627
  if (!value) {
28628
28628
  e.innerHTML = "";
28629
28629
  return;
@@ -28645,7 +28645,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28645
28645
  for (const iterator of descendentElementIterator(msg)) {
28646
28646
  let cid = iterator.getAttribute("data-content-id");
28647
28647
  if (cid) {
28648
- const a = mail.attachments.find(x => x.contentID === cid);
28648
+ const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
28649
28649
  if (a) {
28650
28650
  iterator.setAttribute("src", a.url);
28651
28651
  continue;
@@ -28656,7 +28656,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28656
28656
  if (src) {
28657
28657
  if (src.startsWith("cid:")) {
28658
28658
  cid = src.substring(4);
28659
- const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
28659
+ const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
28660
28660
  if (a) {
28661
28661
  iterator.setAttribute("src", fileUrl(a));
28662
28662
  }
@@ -28675,7 +28675,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28675
28675
  mode: "open"
28676
28676
  });
28677
28677
  shadow.appendChild(msg);
28678
- if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_b = thread.email) === null || _b === void 0 ? void 0 : _b.senderID)) {
28678
+ if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
28679
28679
  const timeRead = DateTime.now;
28680
28680
  thread.timeRead = timeRead;
28681
28681
  const control = AtomControl.from(e);