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

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

No files matched your search

@@ -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