@social-mail/social-mail-client 1.2.93 → 1.2.95

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.
@@ -36210,6 +36210,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
36210
36210
  this.registerDisposable(yield this.resolve(MailboxSocket).join(mb.mailboxID.toString(), {
36211
36211
  newMail: () => {
36212
36212
  this.version++;
36213
+ },
36214
+ mailRead: (mailboxID, emailAddressID, emailID) => {
36215
+ for (const iterator of this.mailsRepeater.items) {
36216
+ if (iterator.emailID !== emailID) {
36217
+ continue;
36218
+ }
36219
+ iterator.timeRead = DateTime.now;
36220
+ this.mailsRepeater.refreshItem(iterator);
36221
+ }
36213
36222
  }
36214
36223
  }));
36215
36224
  this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
@@ -36233,6 +36242,21 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
36233
36242
  const sent = item.senderID === thread.mailboxID;
36234
36243
  const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
36235
36244
  const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
36245
+ let readStatus = "";
36246
+ let readColor = "";
36247
+ if (sent) {
36248
+ const timeRead = thread.timeRead && DateTime.from(thread.timeRead);
36249
+ if (timeRead) {
36250
+ readStatus = `Read ${DateFormats.relative.short(timeRead)}`;
36251
+ readColor = "green";
36252
+ } else if (item.status === "sent") {
36253
+ readStatus = "Sent";
36254
+ readColor = "yellow";
36255
+ } else {
36256
+ readStatus = "In queue";
36257
+ readColor = "lightblue";
36258
+ }
36259
+ }
36236
36260
  if (remaining.totalSeconds > 0) {
36237
36261
  setTimeout(() => this.mailsRepeater.refreshItem(thread), 2000);
36238
36262
  }
@@ -36273,7 +36297,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
36273
36297
  "data-layout": "row"
36274
36298
  }, ...thread.email.tags.split(",").map(x => XNode.create("span", {
36275
36299
  text: `#${x.startsWith("#") ? x.substring(1) : x}`
36276
- }))), !sent && XNode.create("div", {
36300
+ }))), sent ? XNode.create("div", {
36301
+ "data-layout": "row"
36302
+ }, XNode.create("i", {
36303
+ class: "fa-solid fa-circle-small",
36304
+ "style-color": readColor,
36305
+ title: readStatus
36306
+ })) : XNode.create("div", {
36277
36307
  "data-layout": "row"
36278
36308
  }, XNode.create("i", {
36279
36309
  "data-click-event": "react-email",