mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-26 04:14:19 +00:00
Automatically mark msg as read in Mail module
This avoids an extra XHR to the server.
This commit is contained in:
@@ -672,12 +672,8 @@
|
||||
this.$futureMessageData = futureMessageData.then(function(data) {
|
||||
// Calling $timeout will force Angular to refresh the view
|
||||
if (_this.isread === 0) {
|
||||
Message.$$resource.fetch(_this.$absolutePath(), 'markMessageRead').then(function() {
|
||||
Message.$timeout(function() {
|
||||
_this.isread = true;
|
||||
_this.$mailbox.unseenCount--;
|
||||
});
|
||||
});
|
||||
_this.isread = true;
|
||||
_this.$mailbox.unseenCount--;
|
||||
}
|
||||
return Message.$timeout(function() {
|
||||
angular.extend(_this, data);
|
||||
|
||||
Reference in New Issue
Block a user