summaryrefslogtreecommitdiff
path: root/web-ui/app/js/services/model
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-22 15:47:05 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-22 15:47:15 -0200
commit88ed5d5ec169b21a9a21b82ba475efb94894c3dd (patch)
tree011ec7360018201ff4ff6c3cc1631f823707d054 /web-ui/app/js/services/model
parent41598e6e9333e5887048956f4e56e97e35fa5924 (diff)
#202 fix identification if mail is in trash
Diffstat (limited to 'web-ui/app/js/services/model')
-rw-r--r--web-ui/app/js/services/model/mail.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web-ui/app/js/services/model/mail.js b/web-ui/app/js/services/model/mail.js
index 870c6a80..2c5fa0dd 100644
--- a/web-ui/app/js/services/model/mail.js
+++ b/web-ui/app/js/services/model/mail.js
@@ -31,7 +31,7 @@ define(['helpers/contenttype'],
}
function isInTrash() {
- return _.contains(this.tags, 'trash');
+ return this.mailbox.toLowerCase() === 'trash';
}
function setDraftReplyFor(ident) {