This commit is contained in:
the-djmaze 2022-10-07 12:23:07 +02:00
parent 7a7b11bdeb
commit f56102dd88

View file

@ -108,11 +108,13 @@ export class MailFolderList extends AbstractViewLeft {
setFolderHash(folder.fullName, '');
}
*/
hasher.setHash(
mailBox(folder.fullNameHash, 1,
(event.target.matches('.flag-icon') && !folder.isFlagged()) ? 'flagged' : ''
)
);
let search = '';
if (event.target.matches('.flag-icon') && !folder.isFlagged()) {
search = 'flagged';
} else if (folder.printableUnreadCount() && event.clientX > el.getBoundingClientRect().right - 25) {
search = 'unseen';
}
hasher.setHash(mailBox(folder.fullNameHash, 1, search));
}
AppUserStore.focusedState(Scope.MessageList);