@social-mail/social-mail-client 1.2.11 → 1.2.12

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.
@@ -21489,11 +21489,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
21489
21489
  for (const iterator of descendentElementIterator(msg)) {
21490
21490
  if (iterator.tagName === "IMG") {
21491
21491
  const src = iterator.getAttribute("src");
21492
- if (src === null || src === void 0 ? void 0 : src.startsWith("cid:")) {
21493
- const cid = src.substring(4);
21494
- const a = mail.attachments.find(x => x.contentID === cid);
21495
- if (a) {
21496
- iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
21492
+ if (src) {
21493
+ if (src.startsWith("cid:")) {
21494
+ const cid = src.substring(4);
21495
+ const a = mail.attachments.find(x => x.contentID === cid);
21496
+ if (a) {
21497
+ iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
21498
+ }
21499
+ }
21500
+ if (/^http\:\/\//i.test(src)) {
21501
+ iterator.setAttribute("src", src.substring(5));
21497
21502
  }
21498
21503
  }
21499
21504
  continue;
@@ -32407,7 +32412,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
32407
32412
  }, renderMail(thread)))), ((_e = item.attachments) === null || _e === void 0 ? void 0 : _e.length) && XNode.create("div", {
32408
32413
  class: "attachments",
32409
32414
  "data-layout": "flex-wrap-padding"
32410
- }, ...item.attachments.map(FilePreview)), !sent && XNode.create("div", {
32415
+ }, ...item.attachments.map(FilePreview)), thread.email.tags && XNode.create("div", {
32416
+ "data-layout": "row"
32417
+ }, ...thread.email.tags.split(",").map(x => XNode.create("span", {
32418
+ text: `#${x.startsWith("#") ? x.substring(1) : x}`
32419
+ }))), !sent && XNode.create("div", {
32411
32420
  "data-layout": "row"
32412
32421
  }, XNode.create("i", {
32413
32422
  "data-click-event": "reply-email",