@bobfrankston/rmfmail 1.0.507 → 1.0.512

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
@@ -1905,6 +1905,18 @@ onWsEvent((event) => {
1905
1905
  refreshFolderTree();
1906
1906
  // Q53: track per-account last-sync timestamp for the status-bar hover.
1907
1907
  recordAccountSync(event.accountId);
1908
+ // Reload the currently-displayed folder. folderCountsChanged
1909
+ // already triggers a debounced reload when *new* messages arrive,
1910
+ // but on Android the first sync of an account can produce a
1911
+ // bunch of folderCountsChanged events that get coalesced — and
1912
+ // if the unified inbox is the active view but no individual
1913
+ // folder count changed *during* the debounce window, the
1914
+ // message list never refreshes. The phone stayed on its
1915
+ // "no messages" placeholder while Phase 1/2 sync filled the
1916
+ // DB underneath. Forcing one more reload at sync end is cheap
1917
+ // (a single SQL query) and makes the user-visible state catch
1918
+ // up to the DB.
1919
+ reloadCurrentFolder();
1908
1920
  break;
1909
1921
  case "folderSynced":
1910
1922
  // Per-folder timestamps — drives the tooltip + freshness dot.