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

This commit is contained in:
Francis Lachapelle committed 2021-10-21 17:11:43 -04:00
1 parent ab38b1d6c4
commit 642db852c7
4 files changed
+38 -27

No files matched your search

@@ -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);
});
};
})();