fix(mail(js)): reset mailboxes state when leaving global search

This commit is contained in:
Francis Lachapelle
2021-10-21 17:11:43 -04:00
parent ab38b1d6c4
commit 642db852c7
4 changed files with 38 additions and 27 deletions
@@ -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);
});
};
})();