@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.
- package/dist/admin/AdminAppIndex.pack.js +31 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/services/socket/sockets.d.ts +1 -0
- package/dist/services/socket/sockets.d.ts.map +1 -1
- package/dist/services/socket/sockets.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +31 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +31 -1
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/package.json +1 -1
- package/src/services/socket/sockets.ts +4 -1
- package/src/web/page/mails/ConversationPage.tsx +35 -2
|
@@ -28893,6 +28893,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
28893
28893
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(mb.mailboxID.toString(), {
|
|
28894
28894
|
newMail: () => {
|
|
28895
28895
|
this.version++;
|
|
28896
|
+
},
|
|
28897
|
+
mailRead: (mailboxID, emailAddressID, emailID) => {
|
|
28898
|
+
for (const iterator of this.mailsRepeater.items) {
|
|
28899
|
+
if (iterator.emailID !== emailID) {
|
|
28900
|
+
continue;
|
|
28901
|
+
}
|
|
28902
|
+
iterator.timeRead = DateTime.now;
|
|
28903
|
+
this.mailsRepeater.refreshItem(iterator);
|
|
28904
|
+
}
|
|
28896
28905
|
}
|
|
28897
28906
|
}));
|
|
28898
28907
|
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
@@ -28916,6 +28925,21 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
28916
28925
|
const sent = item.senderID === thread.mailboxID;
|
|
28917
28926
|
const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
|
|
28918
28927
|
const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
|
|
28928
|
+
let readStatus = "";
|
|
28929
|
+
let readColor = "";
|
|
28930
|
+
if (sent) {
|
|
28931
|
+
const timeRead = thread.timeRead && DateTime.from(thread.timeRead);
|
|
28932
|
+
if (timeRead) {
|
|
28933
|
+
readStatus = `Read ${DateFormats.relative.short(timeRead)}`;
|
|
28934
|
+
readColor = "green";
|
|
28935
|
+
} else if (item.status === "sent") {
|
|
28936
|
+
readStatus = "Sent";
|
|
28937
|
+
readColor = "yellow";
|
|
28938
|
+
} else {
|
|
28939
|
+
readStatus = "In queue";
|
|
28940
|
+
readColor = "lightblue";
|
|
28941
|
+
}
|
|
28942
|
+
}
|
|
28919
28943
|
if (remaining.totalSeconds > 0) {
|
|
28920
28944
|
setTimeout(() => this.mailsRepeater.refreshItem(thread), 2000);
|
|
28921
28945
|
}
|
|
@@ -28956,7 +28980,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
28956
28980
|
"data-layout": "row"
|
|
28957
28981
|
}, ...thread.email.tags.split(",").map(x => XNode.create("span", {
|
|
28958
28982
|
text: `#${x.startsWith("#") ? x.substring(1) : x}`
|
|
28959
|
-
}))),
|
|
28983
|
+
}))), sent ? XNode.create("div", {
|
|
28984
|
+
"data-layout": "row"
|
|
28985
|
+
}, XNode.create("i", {
|
|
28986
|
+
class: "fa-solid fa-circle-small",
|
|
28987
|
+
"style-color": readColor,
|
|
28988
|
+
title: readStatus
|
|
28989
|
+
})) : XNode.create("div", {
|
|
28960
28990
|
"data-layout": "row"
|
|
28961
28991
|
}, XNode.create("i", {
|
|
28962
28992
|
"data-click-event": "react-email",
|