summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorJefferson Stachelski <jstachel@thoughtworks.com>2015-09-30 17:43:10 -0300
committerJefferson Stachelski <jstachel@thoughtworks.com>2015-09-30 17:50:52 -0300
commit1bb024166555ff3477bf8be2e0092814f041c8c1 (patch)
treef42b514907406250e7e5d3f6a470c6aca1a6622f /web-ui/app
parent891d202dfbf7ad4339a1f9f12ae79e1dc3b8d325 (diff)
issue #475 - Fixed the jshint
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/mail_view/ui/mail_view.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js
index fb640529..3c5b0ccc 100644
--- a/web-ui/app/js/mail_view/ui/mail_view.js
+++ b/web-ui/app/js/mail_view/ui/mail_view.js
@@ -52,6 +52,10 @@ define(
signed = this.checkSigned(data.mail);
encrypted = this.checkEncrypted(data.mail);
+ if(data.mail.mailbox === 'sent') {
+ encrypted = undefined;
+ }
+
var attachments = _.map(data.mail.attachments, function(a){
return { 'encoding': a.encoding, 'name': a.name, 'ident': a.ident };
});