mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
fix(mail): Fix issue where unread counter is invalid when whanging folder. Fixes #6001.
This commit is contained in:
1 parent
16f371dba7
commit
91a249009b
2 files changed
+4
-4
No files matched your search
@@ -51,8 +51,6 @@
|
||||
});
|
||||
|
||||
$rootScope.$on('resetMailAdvancedSearchPanel', function () {
|
||||
vm.service.$virtualPath = false;
|
||||
vm.service.$virtualMode = false;
|
||||
vm.reset();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -84,15 +84,17 @@
|
||||
|
||||
|
||||
this.selectFolder = function($event) {
|
||||
$rootScope.$broadcast('resetMailAdvancedSearchPanel'); // Reset advanced search panel (broadcast event to MailboxesController)
|
||||
if (this.editMode || this.mailbox == Mailbox.selectedFolder || this.mailbox.isNoSelect())
|
||||
return;
|
||||
|
||||
this.mailbox.setHighlightWords([]);
|
||||
if (Mailbox.selectedFolder) {
|
||||
if (Mailbox.$virtualMode) {
|
||||
Mailbox.$virtualMode = false;
|
||||
Mailbox.$virtualPath = false;
|
||||
Mailbox.selectedFolder.$reset({ filter: true });
|
||||
}
|
||||
$rootScope.$broadcast('resetMailAdvancedSearchPanel'); // Reset advanced search panel (broadcast event to MailboxesController)
|
||||
|
||||
this.accountController.selectFolder(this);
|
||||
if ($event) {
|
||||
$state.go('mail.account.mailbox', {
|
||||
|
||||
Reference in new issue
Block a user