@bobfrankston/rmfmail 1.1.181 → 1.1.183

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
@@ -4728,6 +4728,19 @@ if (optPriorityOnly) {
4728
4728
  localStorage.setItem("mailx-priority-only", String(optPriorityOnly.checked));
4729
4729
  });
4730
4730
  }
4731
+ // "Show all messages" escape from a list that's empty only because a
4732
+ // flagged-only / priority-only filter is hiding every row. The message-list
4733
+ // renders an overlay with this button when a filter hides everything; here
4734
+ // we honor it by clearing BOTH filters (whichever was on) and reloading.
4735
+ document.addEventListener("mailx-clear-list-filters", () => {
4736
+ applyFlaggedFilter(false);
4737
+ if (optPriorityOnly?.checked) {
4738
+ optPriorityOnly.checked = false;
4739
+ document.getElementById("ml-body")?.classList.remove("priority-only");
4740
+ localStorage.setItem("mailx-priority-only", "false");
4741
+ }
4742
+ reloadCurrentFolder();
4743
+ });
4731
4744
  // Folder counts toggle
4732
4745
  optFolderCounts?.addEventListener("change", () => {
4733
4746
  const tree = document.getElementById("folder-tree");