@social-mail/social-mail-client 1.4.190 → 1.4.192

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.
@@ -27983,7 +27983,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
27983
27983
  return FetchBuilder.get(path).asText();
27984
27984
  }))();
27985
27985
  _export("renderMailPromise", renderMailPromise = AtomControl.registerProperty("data-html", "html", (c, e, value) => __awaiter(void 0, void 0, void 0, function* () {
27986
- var _a, _b, _c, _d;
27986
+ var _a, _b, _c, _d, _e;
27987
27987
  if (!value) {
27988
27988
  e.innerHTML = "";
27989
27989
  return;
@@ -28046,9 +28046,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28046
28046
  if (src) {
28047
28047
  if (src.startsWith("cid:")) {
28048
28048
  cid = src.substring(4);
28049
- const a = (_c = mail.attachments) === null || _c === void 0 ? void 0 : _c.find(x => x.contentID === cid);
28049
+ const cidBrackets = `<${cid}>`;
28050
+ const a = (_c = mail.attachments) === null || _c === void 0 ? void 0 : _c.find(x => x.contentID === cid || x.contentID === cidBrackets);
28050
28051
  if (a) {
28051
- iterator.setAttribute("src", fileUrl(a));
28052
+ iterator.setAttribute("src", (_d = a.url) !== null && _d !== void 0 ? _d : fileUrl(a));
28052
28053
  a.included = true;
28053
28054
  }
28054
28055
  }
@@ -28069,7 +28070,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28069
28070
  const root = AncestorEnumerator.find(e, x => x.hasAttribute("data-msg-container"));
28070
28071
  (root !== null && root !== void 0 ? root : e).setAttribute("has-poster", "true");
28071
28072
  }
28072
- if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_d = thread.email) === null || _d === void 0 ? void 0 : _d.senderID)) {
28073
+ if (thread && !thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_e = thread.email) === null || _e === void 0 ? void 0 : _e.senderID)) {
28073
28074
  const timeRead = DateTime.now;
28074
28075
  thread.timeRead = timeRead;
28075
28076
  const es = c.app.resolve(EntityService);