1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

Prevent selection of unloaded message

This commit is contained in:
Tankred Hase 2015-04-07 16:14:40 +02:00
parent b752269c68
commit d67e0531d5

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 * Set the route to a message which will go to read mode
*/ */
$scope.navigate = function(message) { $scope.navigate = function(message) {
if (!message || !message.from) {
// early return if message has not finished loading yet
return;
}
$location.search('uid', message.uid); $location.search('uid', message.uid);
}; };