From 6f9d97dbfa10cc3012ad415228a07622db46934e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Thu, 6 Aug 2020 20:00:44 +0000 Subject: [PATCH] [FIX] mail: ensure ChatWindowManager is re-rendering after init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fix non-appearing chat windows if messaging becomes initialized after ChatWindowManager was first mounted. closes odoo/odoo#55592 X-original-commit: 96f5bfb9da21668eadaa7bbe81d10d0bfd4f4483 Related: odoo/enterprise#12286 Signed-off-by: Sébastien Theys (seb) --- .../src/components/chat_window_manager/chat_window_manager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mail/static/src/components/chat_window_manager/chat_window_manager.js b/addons/mail/static/src/components/chat_window_manager/chat_window_manager.js index c2d2581742c..269c7096cd9 100644 --- a/addons/mail/static/src/components/chat_window_manager/chat_window_manager.js +++ b/addons/mail/static/src/components/chat_window_manager/chat_window_manager.js @@ -24,6 +24,7 @@ class ChatWindowManager extends Component { return { allOrderedVisible: allOrderedVisible.map(chatWindow => chatWindow ? chatWindow.__state : undefined), chatWindowManager: chatWindowManager ? chatWindowManager.__state : undefined, + isInitialized: this.env.messaging.isInitialized, }; }, { compareDepth: {