@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.
@@ -24228,7 +24228,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24228
24228
  }],
24229
24229
  execute: function () {
24230
24230
  _export("renderMail", renderMail = AtomControl.registerProperty("data-html", "html", (c, e, value) => {
24231
- var _a, _b;
24231
+ var _a, _b, _c;
24232
24232
  if (!value) {
24233
24233
  e.innerHTML = "";
24234
24234
  return;
@@ -24250,7 +24250,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24250
24250
  for (const iterator of descendentElementIterator(msg)) {
24251
24251
  let cid = iterator.getAttribute("data-content-id");
24252
24252
  if (cid) {
24253
- const a = mail.attachments.find(x => x.contentID === cid);
24253
+ const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
24254
24254
  if (a) {
24255
24255
  iterator.setAttribute("src", a.url);
24256
24256
  continue;
@@ -24261,7 +24261,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24261
24261
  if (src) {
24262
24262
  if (src.startsWith("cid:")) {
24263
24263
  cid = src.substring(4);
24264
- const a = (_a = mail.attachments) === null || _a === void 0 ? void 0 : _a.find(x => x.contentID === cid);
24264
+ const a = (_b = mail.attachments) === null || _b === void 0 ? void 0 : _b.find(x => x.contentID === cid);
24265
24265
  if (a) {
24266
24266
  iterator.setAttribute("src", fileUrl(a));
24267
24267
  }
@@ -24280,7 +24280,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
24280
24280
  mode: "open"
24281
24281
  });
24282
24282
  shadow.appendChild(msg);
24283
- if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_b = thread.email) === null || _b === void 0 ? void 0 : _b.senderID)) {
24283
+ if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_c = thread.email) === null || _c === void 0 ? void 0 : _c.senderID)) {
24284
24284
  const timeRead = DateTime.now;
24285
24285
  thread.timeRead = timeRead;
24286
24286
  const control = AtomControl.from(e);