summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_list
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mail_list')
-rw-r--r--web-ui/app/js/mail_list/ui/mail_item_factory.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_list/ui/mail_item_factory.js b/web-ui/app/js/mail_list/ui/mail_item_factory.js
index e7e52cc2..88638c9d 100644
--- a/web-ui/app/js/mail_list/ui/mail_item_factory.js
+++ b/web-ui/app/js/mail_list/ui/mail_item_factory.js
@@ -55,9 +55,9 @@ define(
};
var detectMailType = function(mail) {
- if(_.include(mail.tags, 'drafts')) {
+ if (mail.isDraftMail()) {
return MAIL_ITEM_TYPE.drafts;
- } else if(_.include(mail.tags, 'sent')) {
+ } else if (mail.isSentMail()) {
return MAIL_ITEM_TYPE.sent;
} else {
return GenericMailItem;