@bobfrankston/rmfmail 1.2.68 → 1.2.70

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
@@ -5957,13 +5957,18 @@ function saveBootSnapshot() {
5957
5957
  // (e.g. user clicked a folder, list is empty for a tick) would
5958
5958
  // otherwise clobber the previous good snapshot.
5959
5959
  const ftHtml = folderTree?.innerHTML?.trim() || "";
5960
- const mlHtml = messageList?.innerHTML?.trim() || "";
5960
+ // Search is ephemeral: never snapshot the list while a search is
5961
+ // showing, or a cold start would repaint stale search results before
5962
+ // the real folder/inbox loads (Bob 2026-06-26). Empty string = the
5963
+ // loader skips this region and the normal boot load fills it.
5964
+ const searching = (searchInput?.value.trim() || "") !== "";
5965
+ const mlHtml = searching ? "" : (messageList?.innerHTML?.trim() || "");
5961
5966
  if (!ftHtml && !mlHtml)
5962
5967
  return;
5963
5968
  const snap = {
5964
5969
  folderTree: ftHtml,
5965
5970
  messageList: mlHtml,
5966
- folderTitle: folderTitle?.innerHTML?.trim() || "",
5971
+ folderTitle: searching ? "" : (folderTitle?.innerHTML?.trim() || ""),
5967
5972
  savedAt: Date.now(),
5968
5973
  };
5969
5974
  localStorage.setItem("mailx-boot-snapshot", JSON.stringify(snap));