From c9e25aab343bd01eb988b2228ce4e2ddb7939af0 Mon Sep 17 00:00:00 2001 From: Xavier Dubuc Date: Thu, 6 Aug 2020 09:35:18 +0000 Subject: [FIX] mail: allow folded chat windows to be shifted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2313414 closes odoo/odoo#55593 X-original-commit: 609dab84c6085af1ab27ee142c6ee674d7d321e9 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/components/chat_window/chat_window.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'addons/mail/static/src/components/chat_window') diff --git a/addons/mail/static/src/components/chat_window/chat_window.js b/addons/mail/static/src/components/chat_window/chat_window.js index 76114f7e831..7424e32ec08 100644 --- a/addons/mail/static/src/components/chat_window/chat_window.js +++ b/addons/mail/static/src/components/chat_window/chat_window.js @@ -115,6 +115,9 @@ class ChatWindow extends Component { isDoFocus: false, isFocused: true, }); + if (this.chatWindow.isFolded) { + return; + } if (!this.chatWindow.thread) { this._inputRef.comp.focus(); } else { -- cgit v1.2.3