@social-mail/social-mail-client 1.2.553 → 1.2.555

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.
@@ -28410,7 +28410,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
28410
28410
  downloadFromUrl(url, email) {
28411
28411
  return __awaiter(this, void 0, void 0, function* () {
28412
28412
  if (!window.caches) {
28413
- return FetchBuilder.get(url).responseAsText();
28413
+ const text = yield FetchBuilder.get(url).responseAsText();
28414
+ email.htmlBody = text;
28415
+ return text;
28414
28416
  }
28415
28417
  const cache = yield window.caches.open("email-content-cache");
28416
28418
  const cacheKey = new URL(url, location.href);
@@ -28725,9 +28727,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28725
28727
  }
28726
28728
  const thread = value;
28727
28729
  const mail = thread.email;
28728
- const html = mail.htmlBody;
28730
+ let html = mail.htmlBody;
28729
28731
  const msg = document.createElement("div");
28730
28732
  if (!html) {
28733
+ html !== null && html !== void 0 ? html : html = mail.textBody;
28731
28734
  for (const iterator of html.split("\n")) {
28732
28735
  const p = document.createElement("p");
28733
28736
  p.appendChild(document.createTextNode(iterator));