@bobfrankston/rmfmail 1.1.184 → 1.1.186

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.js CHANGED
@@ -3711,8 +3711,13 @@ if (!savedSnippet)
3711
3711
  document.getElementById("message-list")?.classList.add("no-snippets");
3712
3712
  if (savedThreaded)
3713
3713
  document.getElementById("ml-body")?.classList.add("threaded");
3714
- if (savedFlagged)
3714
+ if (savedFlagged) {
3715
3715
  document.getElementById("ml-body")?.classList.add("flagged-only");
3716
+ try {
3717
+ logClientEvent("boot-restore-flagged", { savedFlagged });
3718
+ }
3719
+ catch { /* */ }
3720
+ }
3716
3721
  if (savedFolderCounts)
3717
3722
  document.getElementById("folder-tree")?.classList.add("show-folder-counts");
3718
3723
  // "Only this conversation" toggle — hides rows whose threadId differs from
@@ -4691,6 +4696,10 @@ function syncFilterFlaggedButton() {
4691
4696
  btn.setAttribute("aria-pressed", optFlagged?.checked ? "true" : "false");
4692
4697
  }
4693
4698
  function applyFlaggedFilter(on) {
4699
+ try {
4700
+ logClientEvent("applyFlaggedFilter", { on, caller: new Error().stack?.split("\n").slice(2, 5).join(" | ") });
4701
+ }
4702
+ catch { /* */ }
4694
4703
  if (optFlagged)
4695
4704
  optFlagged.checked = on;
4696
4705
  const body = document.getElementById("ml-body");