From f56102dd8878c15191357365ebdf8a81cfe00ff0 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 7 Oct 2022 12:23:07 +0200 Subject: [PATCH] Resolve #447 --- dev/View/User/MailBox/FolderList.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dev/View/User/MailBox/FolderList.js b/dev/View/User/MailBox/FolderList.js index ae1c0c2ba..e63dc4e79 100644 --- a/dev/View/User/MailBox/FolderList.js +++ b/dev/View/User/MailBox/FolderList.js @@ -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);