From ad8e969323ef504f6f4a745ceeac6d0d2b19a91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lef=C3=A8vre?= Date: Mon, 8 Apr 2019 17:24:01 +0200 Subject: [PATCH] [FIX] mail: Don't display message if only subtype Currently, if a message does not have any tracking value, any attachment and no body BUT has a subtype with a description, the message is not considered as empty. The message subtype should not influence its "emptyness". --- addons/mail/static/src/js/models/messages/abstract_message.js | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mail/static/src/js/models/messages/abstract_message.js b/addons/mail/static/src/js/models/messages/abstract_message.js index 111ebaa760e..6a7b02d6e94 100644 --- a/addons/mail/static/src/js/models/messages/abstract_message.js +++ b/addons/mail/static/src/js/models/messages/abstract_message.js @@ -255,7 +255,6 @@ var AbstractMessage = Class.extend({ */ isEmpty: function () { return !this.hasTrackingValues() && - !this.hasSubtypeDescription() && !this.hasAttachments() && !this.getBody(); },