[FIX] mail: no empty bubble on editing message with only attachments

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) <wil@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2023-07-26 09:22:33 +02:00
parent 9559b113dd
commit 2e15b640de
@@ -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() {