summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-08-06 09:35:18 +0000
committerAlexandre Kühn <aku@odoo.com>2020-08-06 21:27:15 +0000
commitc9e25aab343bd01eb988b2228ce4e2ddb7939af0 (patch)
treec1b2ea01c5f66e6a6923310d73416e5e9a438b12 /addons/mail/static/src/components/chat_window
parent9637de2f9e5e61236bf9b96c4924dda6f7b5aa44 (diff)
[FIX] mail: allow folded chat windows to be shifted
task-2313414 closes odoo/odoo#55593 X-original-commit: 609dab84c6085af1ab27ee142c6ee674d7d321e9 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')
-rw-r--r--addons/mail/static/src/components/chat_window/chat_window.js3
1 files changed, 3 insertions, 0 deletions
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 {