@social-mail/social-mail-client 1.1.20 → 1.1.22

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.
@@ -13390,7 +13390,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
13390
13390
  originalFileSize: 0
13391
13391
  }));
13392
13392
  _export("EmailEngagement", EmailEngagement = new Model("EmailEngagement", ["emailID"], {
13393
- activity: "",
13393
+ engagement: "",
13394
13394
  count: 0
13395
13395
  }));
13396
13396
  _export("AppLog", AppLog = new Model("AppLog", ["logID"], {
@@ -21416,17 +21416,17 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
21416
21416
  downloadEmailContent = (es, email) => __awaiter(void 0, void 0, void 0, function* () {
21417
21417
  var _a, _b;
21418
21418
  if (email.replyCount) {
21419
- const egagements = yield es.query(Email).where({
21419
+ const children = yield es.query(Email).where({
21420
21420
  emailID: email.emailID
21421
- }, p => x => x.parentID === p.emailID && x.engagement !== null).orderByDescending(x => x.dateReceived).toPagedList({
21421
+ }, p => x => x.emailID === p.emailID && x.engagement !== null).orderByDescending(x => x.emailID).toPagedList({
21422
21422
  start: 0,
21423
21423
  size: 4,
21424
21424
  cacheVersion: "a",
21425
21425
  cacheSeconds: 900
21426
21426
  });
21427
- email.engagements = (_a = egagements === null || egagements === void 0 ? void 0 : egagements.items) !== null && _a !== void 0 ? _a : [];
21427
+ email.children = (_a = children === null || children === void 0 ? void 0 : children.items) !== null && _a !== void 0 ? _a : [];
21428
21428
  } else {
21429
- (_b = email.engagements) !== null && _b !== void 0 ? _b : email.engagements = [];
21429
+ (_b = email.children) !== null && _b !== void 0 ? _b : email.children = [];
21430
21430
  }
21431
21431
  if (!email.originalFileID) {
21432
21432
  return;
@@ -25865,7 +25865,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../services/Emoji"
25865
25865
  }), XNode.create(EmojiButton, {
25866
25866
  emoji: "\uD83D\uDDE8\uFE0F",
25867
25867
  senderEmail: senderEmail
25868
- })));
25868
+ })), XNode.create("div", null, XNode.create("br", null), XNode.create("br", null), XNode.create("a", {
25869
+ "data-command": "unsubscribe"
25870
+ }, "Unsubscribe")));
25869
25871
  }
25870
25872
  });
25871
25873
  }