1
0
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:
Tankred Hase 2014-05-12 13:18:51 +02:00
parent 453422cf11
commit a97c3a35e7

View File

@ -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;
}