mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-16 19:08:00 +00:00
fix(mail(js)): reset mailboxes state when leaving global search
This commit is contained in:
@@ -399,4 +399,15 @@
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $reset
|
||||
* @memberof VirtualMailbox.prototype
|
||||
* @desc Reset the original state all mailboxes data.
|
||||
*/
|
||||
VirtualMailbox.prototype.$reset = function(options) {
|
||||
_.forEach(this.$mailboxes, function(mailbox) {
|
||||
mailbox.$reset(options);
|
||||
});
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user