@bobfrankston/rmfmail 1.1.183 → 1.1.185

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.
@@ -3076,7 +3076,6 @@ async function loadUnifiedInbox(autoSelect = true) {
3076
3076
  if (myGen !== loadGen)
3077
3077
  return;
3078
3078
  totalMessages = result.total;
3079
- logClientEvent("loadUnifiedInbox", { items: result.items?.length ?? 0, total: result.total, hadCache: !!cached, cacheItems: cached?.items?.length ?? 0 });
3080
3079
  listCache.set(CACHE_KEY_UNIFIED, { items: result.items, total: result.total, timestamp: Date.now() });
3081
3080
  if (cached && listResultsEqual(cached.items, result.items))
3082
3081
  return;
@@ -9484,7 +9483,13 @@ if (savedTwoLine) document.getElementById("message-list")?.classList.add("two-li
9484
9483
  if (!savedPreview) document.querySelector(".main-area")?.classList.add("no-preview");
9485
9484
  if (!savedSnippet) document.getElementById("message-list")?.classList.add("no-snippets");
9486
9485
  if (savedThreaded) document.getElementById("ml-body")?.classList.add("threaded");
9487
- if (savedFlagged) document.getElementById("ml-body")?.classList.add("flagged-only");
9486
+ if (savedFlagged) {
9487
+ document.getElementById("ml-body")?.classList.add("flagged-only");
9488
+ try {
9489
+ logClientEvent("boot-restore-flagged", { savedFlagged });
9490
+ } catch {
9491
+ }
9492
+ }
9488
9493
  if (savedFolderCounts) document.getElementById("folder-tree")?.classList.add("show-folder-counts");
9489
9494
  optThreadFilter?.addEventListener("change", () => {
9490
9495
  const body = document.getElementById("ml-body");
@@ -10274,6 +10279,10 @@ function syncFilterFlaggedButton() {
10274
10279
  btn.setAttribute("aria-pressed", optFlagged?.checked ? "true" : "false");
10275
10280
  }
10276
10281
  function applyFlaggedFilter(on) {
10282
+ try {
10283
+ logClientEvent("applyFlaggedFilter", { on, caller: new Error().stack?.split("\n").slice(2, 5).join(" | ") });
10284
+ } catch {
10285
+ }
10277
10286
  if (optFlagged) optFlagged.checked = on;
10278
10287
  const body = document.getElementById("ml-body");
10279
10288
  if (on) body?.classList.add("flagged-only");