fix bug in selected mail is undefined

This commit is contained in:
Tankred Hase 2013-12-04 16:42:17 +01:00
parent 2e4e59101b
commit e7cf769125
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ define(function(require) {
$scope.$watch('state.mailList.selected', function() {
var mail = $scope.state.mailList.selected;
if (!mail) {
return;
}
// display sender security status
mail.from.forEach(checkPublicKey);
// display recipient security status