@bobfrankston/rmfmail 1.2.13 → 1.2.15
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/android-bootstrap.bundle.js +9 -0
- package/client/android-bootstrap.bundle.js.map +2 -2
- package/client/app.bundle.js +21 -10
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +27 -9
- package/client/app.js.map +1 -1
- package/client/app.ts +25 -8
- package/package.json +3 -3
package/client/app.bundle.js
CHANGED
|
@@ -9623,18 +9623,29 @@ document.addEventListener("keydown", (e) => {
|
|
|
9623
9623
|
const active = document.activeElement;
|
|
9624
9624
|
const inText = active && (active.tagName === "INPUT" || active.tagName === "TEXTAREA" || active.tagName === "SELECT" || active.isContentEditable);
|
|
9625
9625
|
if (!e.ctrlKey && inText) return;
|
|
9626
|
+
e.preventDefault();
|
|
9627
|
+
const applySeen = (m, seen) => {
|
|
9628
|
+
setSeen(m, seen);
|
|
9629
|
+
updateFlags(m.accountId, m.uid, m.flags).then(() => {
|
|
9630
|
+
updateMessageFlags(m.accountId, m.uid, m.flags);
|
|
9631
|
+
const row = document.querySelector(`.ml-row[data-uid="${m.uid}"][data-account-id="${CSS.escape(m.accountId)}"]`);
|
|
9632
|
+
if (row) row.classList.toggle("unread", !seen);
|
|
9633
|
+
}).catch(() => {
|
|
9634
|
+
setSeen(m, !seen);
|
|
9635
|
+
});
|
|
9636
|
+
};
|
|
9637
|
+
const selectedIds = getSelectedMessages();
|
|
9638
|
+
if (selectedIds.length > 1) {
|
|
9639
|
+
const all = getMessages2();
|
|
9640
|
+
for (const id of selectedIds) {
|
|
9641
|
+
const m = all.find((x) => x.accountId === id.accountId && x.uid === id.uid && x.folderId === id.folderId);
|
|
9642
|
+
if (m && !seenOf(m)) applySeen(m, true);
|
|
9643
|
+
}
|
|
9644
|
+
return;
|
|
9645
|
+
}
|
|
9626
9646
|
const sel = getCurrentFocused();
|
|
9627
9647
|
if (!sel) return;
|
|
9628
|
-
|
|
9629
|
-
const wasSeen = seenOf(sel);
|
|
9630
|
-
setSeen(sel, !wasSeen);
|
|
9631
|
-
updateFlags(sel.accountId, sel.uid, sel.flags).then(() => {
|
|
9632
|
-
updateMessageFlags(sel.accountId, sel.uid, sel.flags);
|
|
9633
|
-
const row = document.querySelector(`.ml-row[data-uid="${sel.uid}"][data-account-id="${sel.accountId}"]`);
|
|
9634
|
-
if (row) row.classList.toggle("unread", wasSeen);
|
|
9635
|
-
}).catch(() => {
|
|
9636
|
-
setSeen(sel, wasSeen);
|
|
9637
|
-
});
|
|
9648
|
+
applySeen(sel, !seenOf(sel));
|
|
9638
9649
|
}
|
|
9639
9650
|
if (e.key.toLowerCase() === "z" && !e.ctrlKey && !e.metaKey && !e.altKey) {
|
|
9640
9651
|
const active = document.activeElement;
|