@bobfrankston/rmfmail 1.2.72 → 1.2.74

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
@@ -4251,7 +4251,16 @@ const savedPreview = localStorage.getItem("mailx-preview") !== "false"; // defau
4251
4251
  const savedSnippet = localStorage.getItem("mailx-snippet") !== "false"; // default true
4252
4252
  const savedFlagStars = localStorage.getItem("mailx-flag-stars") !== "false"; // default true (show)
4253
4253
  const savedThreaded = localStorage.getItem("mailx-threaded") === "true";
4254
- const savedFlagged = localStorage.getItem("mailx-flagged") === "true";
4254
+ // Flagged-only ("★ only") is EPHEMERAL — it must NOT persist across restarts.
4255
+ // Restoring it on boot left the user stuck every launch in a gold-washed,
4256
+ // all-starred list with no obvious way out, and the ★ toggle felt like a no-op
4257
+ // because the state kept coming back (Bob 2026-06-27). Always start OFF and
4258
+ // clear any stale stored value; the in-session toggle still works normally.
4259
+ const savedFlagged = false;
4260
+ try {
4261
+ localStorage.removeItem("mailx-flagged");
4262
+ }
4263
+ catch { /* private mode */ }
4255
4264
  const savedFolderCounts = localStorage.getItem("mailx-folder-counts") === "true";
4256
4265
  if (optTwoLine)
4257
4266
  optTwoLine.checked = savedTwoLine;
@@ -4277,13 +4286,7 @@ if (!savedFlagStars)
4277
4286
  document.getElementById("message-list")?.classList.add("no-empty-stars");
4278
4287
  if (savedThreaded)
4279
4288
  document.getElementById("ml-body")?.classList.add("threaded");
4280
- if (savedFlagged) {
4281
- document.getElementById("ml-body")?.classList.add("flagged-only");
4282
- try {
4283
- logClientEvent("boot-restore-flagged", { savedFlagged });
4284
- }
4285
- catch { /* */ }
4286
- }
4289
+ // (flagged-only intentionally NOT restored — ephemeral, see savedFlagged above)
4287
4290
  if (savedFolderCounts)
4288
4291
  document.getElementById("folder-tree")?.classList.add("show-folder-counts");
4289
4292
  // "Only this conversation" toggle — hides rows whose threadId differs from