Skip to content

Commit a1a81ca

Browse files
committed
fix(frontend): prevent overwrite of the messages list when it already has content, thus preserving row selection
1 parent 90cb5b6 commit a1a81ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imap/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ var remove_from_cached_imap_pages = function(msg_cache_key) {
406406
async function select_imap_folder(path, page = 1, reload, processInTheBackground = false) {
407407
const messages = new Hm_MessagesStore(path, page, `${getParam('keyword')}_${getParam('filter')}`, getParam('sort'), []);
408408
await messages.load(reload, processInTheBackground, false, () => {
409-
if (processInTheBackground) {
409+
if (processInTheBackground || Hm_Utils.rows().length) {
410410
for (let row of messages.rows) {
411411
row = $(row['0']);
412412
const rowUid = row.data('uid');

0 commit comments

Comments
 (0)