1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 20:32:15 -05:00

Fix bug where read mode is closed after marking email as read

This commit is contained in:
Tankred Hase 2014-11-27 15:15:44 +01:00
parent 12e65e0011
commit 0d90af5ec1
2 changed files with 5 additions and 3 deletions

View File

@ -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
if (!keepOpen) {
$scope.state.read.open = false; $scope.state.read.open = false;
}
var originalState = message.unread; var originalState = message.unread;
message.unread = unread; message.unread = unread;

View File

@ -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);
} }
}; };