From 2e15b640dee598210f6ce1463244e2f26eb929a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 20 Jul 2023 14:31:32 +0000 Subject: [PATCH] [FIX] mail: no empty bubble on editing message with only attachments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up of https://github.com/odoo/odoo/pull/128650 The edited label is disabled because showing the label introduces problems that have no good solution with the current implementation to determine a message is edited. The label was removed but the condition to determine whether a message has some text content was not updated accordingly. There was a special condition for showing "(edited)" label when a message is edited to remove the text content but has some attachments. Since the label is no more, the presence of text content is the only thing that matters for this getter. closes odoo/odoo#129692 X-original-commit: c53e3e73978f7c25c457a0ad19798566f59c7864 Signed-off-by: Louis Wicket (wil) Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/core/common/message_model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/core/common/message_model.js b/addons/mail/static/src/core/common/message_model.js index a39e70b4b99..f1f63f6eb6d 100644 --- a/addons/mail/static/src/core/common/message_model.js +++ b/addons/mail/static/src/core/common/message_model.js @@ -180,7 +180,7 @@ export class Message { } get hasTextContent() { - return (this.editDate && this.attachments.length) || !this.isBodyEmpty; + return /*(this.editDate && this.attachments.length) || */ !this.isBodyEmpty; } get isEmpty() {