mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
[WO-381] Fix bug that displayed ciphertext instead of plaintext
This commit is contained in:
parent
453422cf11
commit
a97c3a35e7
@ -70,8 +70,10 @@ define(function(require) {
|
||||
$scope.node = undefined;
|
||||
});
|
||||
$scope.$watch('state.mailList.selected.body', function(body) {
|
||||
if (!body || (body && $scope.state.mailList.selected.decrypted === false)) {
|
||||
$scope.node = undefined;
|
||||
var selected = $scope.state.mailList.selected;
|
||||
|
||||
$scope.node = undefined; // reset model
|
||||
if (!body || (body && selected.encrypted && !selected.decrypted)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user