mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 19:02:20 -05:00
fix bug in selected mail is undefined
This commit is contained in:
parent
2e4e59101b
commit
e7cf769125
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user