From a6d6a71fdf8e7759b2fb55d1aef55d60b9ba9b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 17 Jun 2022 12:18:04 +0000 Subject: [PATCH] [IMP] mail: only send thread to chatter rendered As a first step clean up, attachments can be read directly from thread instead. Part of task-2886642 Part-of: odoo/odoo#93895 --- addons/mail/static/src/components/chatter/chatter.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/mail/static/src/components/chatter/chatter.js b/addons/mail/static/src/components/chatter/chatter.js index 500efc21cf8..d796b737d8c 100644 --- a/addons/mail/static/src/components/chatter/chatter.js +++ b/addons/mail/static/src/components/chatter/chatter.js @@ -38,8 +38,7 @@ export class Chatter extends LegacyComponent { */ _notifyRendered() { this.trigger('o-chatter-rendered', { - attachments: this.chatter.thread.allAttachments, - thread: this.chatter.thread.localId, + thread: this.chatter.thread, }); }