@bobfrankston/rmfmail 1.2.81 → 1.2.83
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/client/app.bundle.js +40 -11
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +7 -1
- package/client/app.js.map +1 -1
- package/client/app.ts +7 -1
- package/client/components/message-viewer.js +46 -14
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +45 -14
- package/client/index.html +1 -1
- package/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -5778,12 +5778,18 @@ document.addEventListener("mailx-popout-action", ((e) => {
|
|
|
5778
5778
|
const { action, msg, accountId } = e.detail || {};
|
|
5779
5779
|
if (!msg)
|
|
5780
5780
|
return;
|
|
5781
|
-
if (action === "reply" || action === "replyAll" || action === "forward") {
|
|
5781
|
+
if (action === "reply" || action === "replyAll" || action === "forward" || action === "editAsNew") {
|
|
5782
5782
|
openCompose(action, msg, accountId);
|
|
5783
5783
|
}
|
|
5784
5784
|
else if (action === "delete") {
|
|
5785
5785
|
deleteMessage(accountId, msg.uid).catch((err) => console.error(`[popout] delete failed: ${err?.message || err}`));
|
|
5786
5786
|
}
|
|
5787
|
+
else if (action === "flag") {
|
|
5788
|
+
const wasFlagged = flaggedOf(msg);
|
|
5789
|
+
setFlagged(msg, !wasFlagged);
|
|
5790
|
+
updateFlags(accountId, msg.uid, msg.flags, msg.folderId).catch((err) => console.error(`[popout] flag failed: ${err?.message || err}`));
|
|
5791
|
+
setRowFlagged(accountId, msg.uid, !wasFlagged);
|
|
5792
|
+
}
|
|
5787
5793
|
}));
|
|
5788
5794
|
document.addEventListener("mailx-popout-message", (async (e) => {
|
|
5789
5795
|
const { accountId, uid, folderId, subject } = e.detail || {};
|