@bobfrankston/rmfmail 1.2.68 → 1.2.69
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 +9 -3
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +7 -2
- package/client/app.js.map +1 -1
- package/client/app.ts +7 -2
- package/client/components/tabs.js +12 -1
- package/client/components/tabs.js.map +1 -1
- package/client/components/tabs.ts +11 -1
- package/package.json +1 -1
package/client/app.bundle.js
CHANGED
|
@@ -6240,7 +6240,12 @@ function initTabs(strip, apply) {
|
|
|
6240
6240
|
if (raw) {
|
|
6241
6241
|
const parsed = JSON.parse(raw);
|
|
6242
6242
|
if (Array.isArray(parsed?.tabs) && parsed.tabs.length) {
|
|
6243
|
-
tabs = parsed.tabs
|
|
6243
|
+
tabs = parsed.tabs.map((t) => {
|
|
6244
|
+
if (t.view?.kind !== "search")
|
|
6245
|
+
return t;
|
|
6246
|
+
const v = t.view;
|
|
6247
|
+
return v.folderId ? { id: t.id, title: "Mail", view: { kind: "folder", accountId: v.accountId, folderId: v.folderId, specialUse: "" } } : { id: t.id, title: "All Inboxes", view: { kind: "unified" } };
|
|
6248
|
+
});
|
|
6244
6249
|
activeId = parsed.activeId || tabs[0].id;
|
|
6245
6250
|
for (const t of tabs) {
|
|
6246
6251
|
const n = Number(String(t.id).replace(/^t/, ""));
|
|
@@ -11694,12 +11699,13 @@ function saveBootSnapshot() {
|
|
|
11694
11699
|
const messageList2 = document.getElementById("ml-body");
|
|
11695
11700
|
const folderTitle = document.getElementById("ml-folder-title");
|
|
11696
11701
|
const ftHtml = folderTree2?.innerHTML?.trim() || "";
|
|
11697
|
-
const
|
|
11702
|
+
const searching = (searchInput?.value.trim() || "") !== "";
|
|
11703
|
+
const mlHtml = searching ? "" : messageList2?.innerHTML?.trim() || "";
|
|
11698
11704
|
if (!ftHtml && !mlHtml) return;
|
|
11699
11705
|
const snap = {
|
|
11700
11706
|
folderTree: ftHtml,
|
|
11701
11707
|
messageList: mlHtml,
|
|
11702
|
-
folderTitle: folderTitle?.innerHTML?.trim() || "",
|
|
11708
|
+
folderTitle: searching ? "" : folderTitle?.innerHTML?.trim() || "",
|
|
11703
11709
|
savedAt: Date.now()
|
|
11704
11710
|
};
|
|
11705
11711
|
localStorage.setItem("mailx-boot-snapshot", JSON.stringify(snap));
|