Prevent selection of unloaded message

This commit is contained in:
Tankred Hase 2015-04-07 16:14:40 +02:00
parent b752269c68
commit d67e0531d5
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ var MailListCtrl = function($scope, $timeout, $location, $filter, $q, status, no
* Set the route to a message which will go to read mode
*/
$scope.navigate = function(message) {
if (!message || !message.from) {
// early return if message has not finished loading yet
return;
}
$location.search('uid', message.uid);
};