@bobfrankston/rmfmail 1.1.205 → 1.1.207
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 +7 -7
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-list.js +20 -9
- package/client/components/message-list.js.map +1 -1
- package/client/components/message-list.ts +20 -9
- package/client/compose/compose.bundle.js +9 -3
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/lib/rmf-tiny.js +9 -2
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-32632 → node_modules.npmglobalize-stash-71352}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -3089,7 +3089,7 @@ async function loadUnifiedInbox(autoSelect = true) {
|
|
|
3089
3089
|
if (cached) {
|
|
3090
3090
|
totalMessages = cached.total;
|
|
3091
3091
|
setMessages(cached.items);
|
|
3092
|
-
renderMessages(body, "", cached.items);
|
|
3092
|
+
renderMessages(body, "", cached.items, { background: !autoSelect });
|
|
3093
3093
|
const targetUuid = remembered ? pickRestoreUid(cached.items, remembered) : null;
|
|
3094
3094
|
if (targetUuid) {
|
|
3095
3095
|
body.scrollTop = savedScroll;
|
|
@@ -3114,7 +3114,7 @@ async function loadUnifiedInbox(autoSelect = true) {
|
|
|
3114
3114
|
return;
|
|
3115
3115
|
}
|
|
3116
3116
|
setMessages(result.items);
|
|
3117
|
-
withScrollAnchor(body, () => renderMessages(body, "", result.items));
|
|
3117
|
+
withScrollAnchor(body, () => renderMessages(body, "", result.items, { background: !autoSelect }));
|
|
3118
3118
|
const targetUuid = remembered ? pickRestoreUid(result.items, remembered) : null;
|
|
3119
3119
|
if (targetUuid) {
|
|
3120
3120
|
if (!cached)
|
|
@@ -3234,7 +3234,7 @@ async function loadMessages(accountId, folderId, page = 1, specialUse = "", auto
|
|
|
3234
3234
|
if (cached) {
|
|
3235
3235
|
totalMessages = cached.total;
|
|
3236
3236
|
setMessages(cached.items);
|
|
3237
|
-
renderMessages(body, accountId, cached.items);
|
|
3237
|
+
renderMessages(body, accountId, cached.items, { background: !autoSelect });
|
|
3238
3238
|
const targetUuid = remembered ? pickRestoreUid(cached.items, remembered) : null;
|
|
3239
3239
|
if (targetUuid) {
|
|
3240
3240
|
requestAnimationFrame(() => {
|
|
@@ -3264,8 +3264,8 @@ async function loadMessages(accountId, folderId, page = 1, specialUse = "", auto
|
|
|
3264
3264
|
return;
|
|
3265
3265
|
}
|
|
3266
3266
|
setMessages(result.items);
|
|
3267
|
-
withScrollAnchor(body, () => renderMessages(body, accountId, result.items));
|
|
3268
|
-
if (focusedRow) {
|
|
3267
|
+
withScrollAnchor(body, () => renderMessages(body, accountId, result.items, { background: !autoSelect }));
|
|
3268
|
+
if (autoSelect && focusedRow) {
|
|
3269
3269
|
const stillThere = result.items.some((m) => m.accountId === focusedRow.accountId && m.uid === focusedRow.msg.uid);
|
|
3270
3270
|
if (!stillThere) {
|
|
3271
3271
|
clearViewer();
|
|
@@ -3310,7 +3310,7 @@ async function loadMoreMessages() {
|
|
|
3310
3310
|
loading = false;
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
|
-
function renderMessages(body, accountId, items) {
|
|
3313
|
+
function renderMessages(body, accountId, items, opts = {}) {
|
|
3314
3314
|
const fragment = document.createDocumentFragment();
|
|
3315
3315
|
const tempDiv = document.createElement("div");
|
|
3316
3316
|
appendMessages(tempDiv, accountId, items);
|
|
@@ -3321,7 +3321,7 @@ function renderMessages(body, accountId, items) {
|
|
|
3321
3321
|
maybeShowFilterEmptyState(body);
|
|
3322
3322
|
} catch {
|
|
3323
3323
|
}
|
|
3324
|
-
if (focusedRow) {
|
|
3324
|
+
if (focusedRow && !opts.background) {
|
|
3325
3325
|
const fAcct = focusedRow.accountId;
|
|
3326
3326
|
const fUid = focusedRow.msg?.uid;
|
|
3327
3327
|
const stillThere = items.some((m) => (m.accountId || accountId) === fAcct && m.uid === fUid);
|