diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-08-06 09:28:57 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-08-06 13:27:38 +0000 |
| commit | bab20931099beda872aa17e5bb0ddd18cffd83ed (patch) | |
| tree | 44bf347191bc6473d9c7eea6a8244b8831834d54 /addons/mail/static/src/components/chat_window_manager | |
| parent | 7b51aaa1cac3b640861456888773d926bdc501f4 (diff) | |
[FIX] mail: process result of init messaging asynchronously
Part of task-2308312
closes odoo/odoo#55562
X-original-commit: bdc2a9f516562c854837248e7d0898e5cfc8dec1
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/chat_window_manager')
| -rw-r--r-- | addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml b/addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml index 3ced7210da1..42405e9056b 100644 --- a/addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml +++ b/addons/mail/static/src/components/chat_window_manager/chat_window_manager.xml @@ -3,17 +3,19 @@ <t t-name="mail.ChatWindowManager" owl="1"> <div class="o_ChatWindowManager"> - <!-- Note: DOM elements are ordered from left to right --> - <t t-if="env.messaging.chatWindowManager.hasHiddenChatWindows"> - <ChatWindowHiddenMenu class="o_ChatWindowManager_hiddenMenu"/> - </t> - <t t-foreach="env.messaging.chatWindowManager.allOrderedVisible" t-as="chatWindow" t-key="chatWindow.localId"> - <ChatWindow - chatWindowLocalId="chatWindow.localId" - hasCloseAsBackButton="env.messaging.device.isMobile" - isExpandable="!env.messaging.device.isMobile and !!chatWindow.thread" - isFullscreen="env.messaging.device.isMobile" - /> + <t t-if="env.messaging.isInitialized"> + <!-- Note: DOM elements are ordered from left to right --> + <t t-if="env.messaging.chatWindowManager.hasHiddenChatWindows"> + <ChatWindowHiddenMenu class="o_ChatWindowManager_hiddenMenu"/> + </t> + <t t-foreach="env.messaging.chatWindowManager.allOrderedVisible" t-as="chatWindow" t-key="chatWindow.localId"> + <ChatWindow + chatWindowLocalId="chatWindow.localId" + hasCloseAsBackButton="env.messaging.device.isMobile" + isExpandable="!env.messaging.device.isMobile and !!chatWindow.thread" + isFullscreen="env.messaging.device.isMobile" + /> + </t> </t> </div> </t> |
