summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/chat_window
diff options
context:
space:
mode:
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 {