mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
Fix bug where read mode is closed after marking email as read
This commit is contained in:
parent
12e65e0011
commit
0d90af5ec1
@ -96,7 +96,7 @@ var ActionBarCtrl = function($scope, email, dialog, statusDisplay) {
|
|||||||
* @param {Object} message The message to be marked
|
* @param {Object} message The message to be marked
|
||||||
* @param {boolean} unread If the message should be marked as read or unread
|
* @param {boolean} unread If the message should be marked as read or unread
|
||||||
*/
|
*/
|
||||||
$scope.markMessage = function(message, unread) {
|
$scope.markMessage = function(message, unread, keepOpen) {
|
||||||
if (!message) {
|
if (!message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -104,7 +104,9 @@ var ActionBarCtrl = function($scope, email, dialog, statusDisplay) {
|
|||||||
statusDisplay.update('Updating unread flag...');
|
statusDisplay.update('Updating unread flag...');
|
||||||
|
|
||||||
// close read state
|
// close read state
|
||||||
$scope.state.read.open = false;
|
if (!keepOpen) {
|
||||||
|
$scope.state.read.open = false;
|
||||||
|
}
|
||||||
|
|
||||||
var originalState = message.unread;
|
var originalState = message.unread;
|
||||||
message.unread = unread;
|
message.unread = unread;
|
||||||
|
@ -94,7 +94,7 @@ var MailListCtrl = function($scope, $timeout, $routeParams, statusDisplay, notif
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.state.actionBar.markMessage(message, false);
|
$scope.state.actionBar.markMessage(message, false, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user