From c89ae65bb7f71e0821c8b71e6e99462fc6a1acd5 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 4 Jun 2014 18:33:07 +0200 Subject: [PATCH] Fix bug not displaying already decrypted mail --- src/js/dao/email-dao.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/dao/email-dao.js b/src/js/dao/email-dao.js index 6138a0f..5b6d4f2 100644 --- a/src/js/dao/email-dao.js +++ b/src/js/dao/email-dao.js @@ -501,7 +501,7 @@ define(function(require) { * * Please note if you set flags on disk only if you delete from the outbox, * since it is not an IMAP folder but a virtual folder that only exists on disk. - * + * * @param {[type]} options [description] * @param {Function} callback [description] */ @@ -519,7 +519,7 @@ define(function(require) { } // don't do a roundtrip to IMAP, - // especially if you want to mark outbox messages + // especially if you want to mark outbox messages if (options.localOnly || options.folder.path === config.outboxMailboxPath) { markStorage(); return; @@ -787,6 +787,7 @@ define(function(require) { // the message is decrypting has no body, is not encrypted or has already been decrypted if (!message.bodyParts || message.decryptingBody || !message.body || !message.encrypted || message.decrypted) { + callback(null, message); return; }