diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-12-15 12:33:54 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-12-15 12:33:54 +0000 |
| commit | db7f4437a644b93a5227f663fa19dda00817c13c (patch) | |
| tree | 7fc6bb7a8be683f8f1ef376406e1d6d958f1aca0 /addons/mail/static/src/models/chat_window | |
| parent | 0d80dbf8a530209679a65a5c62808be1589c5cef (diff) | |
[FIX] mail: prevent messaging menu from hiding home menu in mobile
task-2330277
closes odoo/odoo#63235
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/chat_window')
| -rw-r--r-- | addons/mail/static/src/models/chat_window/chat_window.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/chat_window/chat_window.js b/addons/mail/static/src/models/chat_window/chat_window.js index 99745b583f9..cf4b9442723 100644 --- a/addons/mail/static/src/models/chat_window/chat_window.js +++ b/addons/mail/static/src/models/chat_window/chat_window.js @@ -50,6 +50,13 @@ function factory(dependencies) { if (thread && notifyServer) { thread.notifyFoldStateToServer('closed'); } + if (this.env.device.isMobile && !this.env.messaging.discuss.isOpen) { + // If we are in mobile and discuss is not open, it means the + // chat window was opened from the messaging menu. In that + // case it should be re-opened to simulate it was always + // there in the background. + this.env.messaging.messagingMenu.update({ isOpen: true }); + } } expand() { |
