Skip to content

Commit 5dd3eca

Browse files
authored
Merge pull request #1677 from mercihabam/fix-list
fix(frontend): prevent overwrite of the messages list when it already has content, thus preserving row selection
2 parents ba74555 + a1a81ca commit 5dd3eca

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)