feat(mail): delay or disable automatic mark message as read

Fixes #1585
This commit is contained in:
Francis Lachapelle
2021-12-07 09:55:13 -05:00
parent 30040ba590
commit 4eed98d58d
14 changed files with 129 additions and 12 deletions

View File

@@ -98,6 +98,9 @@
_.forEach(hotkeys, function(key) {
sgHotkeys.deregisterHotkey(key);
});
// Cancel automatic mark as read
if (vm.message.$markAsReadPromise)
vm.service.$timeout.cancel(vm.message.$markAsReadPromise);
});
}; // $onInit