[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".
This commit is contained in:
Lucas Lefèvre
2019-04-17 17:44:08 +02:00
committed by Yannick Tivisse
parent fbf9b55c5b
commit ad8e969323
@@ -255,7 +255,6 @@ var AbstractMessage = Class.extend({
*/
isEmpty: function () {
return !this.hasTrackingValues() &&
!this.hasSubtypeDescription() &&
!this.hasAttachments() &&
!this.getBody();
},