fix(mail(js)): force search when restoring mailbox during navigation

This commit is contained in:
Francis Lachapelle
2021-10-14 14:32:16 -04:00
parent fa68c864f1
commit 0eb452c412
3 changed files with 14 additions and 3 deletions
@@ -53,8 +53,14 @@
title += ' | ' + defaultWindowTitle;
$window.document.title = title;
});
};
$scope.$on('$destroy', function() {
if (vm.mode.search) {
vm.mode.search = false;
vm.selectedFolder.$reset({ filter: true });
}
});
};
function _registerHotkeys(keys) {
keys.push(sgHotkeys.createHotkey({