@bobfrankston/rmfmail 1.2.149 → 1.2.150

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.
@@ -3001,6 +3001,16 @@ var init_message_viewer = __esm({
3001
3001
  ZOOM_MAX = 3;
3002
3002
  ZOOM_STEP = 0.1;
3003
3003
  previewZoom = clampZoom(parseFloat(localStorage.getItem(ZOOM_KEY) || "1.15"));
3004
+ subscribeStore("*", (ev) => {
3005
+ if (ev?.kind !== "messageRemoved")
3006
+ return;
3007
+ if (!currentMessage)
3008
+ return;
3009
+ const folderMatches = ev.folderId == null || currentMessage.folderId == null || ev.folderId === currentMessage.folderId;
3010
+ if (ev.accountId === currentAccountId && ev.uid === currentMessage.uid && folderMatches) {
3011
+ clearViewer();
3012
+ }
3013
+ });
3004
3014
  subscribeStore("*", (ev) => {
3005
3015
  if (ev.kind !== "bodyFetchError")
3006
3016
  return;