@bobfrankston/rmfmail 1.2.149 → 1.2.151
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.bundle.js +10 -0
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-viewer.js +18 -0
- package/client/components/message-viewer.js.map +1 -1
- package/client/components/message-viewer.ts +17 -0
- package/package.json +5 -5
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +13 -0
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +13 -0
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-store/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-41964 → node_modules.npmglobalize-stash-39904}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -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;
|