From 88ed5d5ec169b21a9a21b82ba475efb94894c3dd Mon Sep 17 00:00:00 2001 From: Alexandre Pretto Nunes Date: Mon, 22 Dec 2014 15:47:05 -0200 Subject: #202 fix identification if mail is in trash --- web-ui/app/js/services/model/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web-ui/app/js/services') 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) { -- cgit v1.2.3