summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/chat_window.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/chat_window.js')
-rw-r--r--addons/mail/static/src/js/chat_window.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_window.js b/addons/mail/static/src/js/chat_window.js
index 0c3a2270045..c8cfecd193f 100644
--- a/addons/mail/static/src/js/chat_window.js
+++ b/addons/mail/static/src/js/chat_window.js
@@ -150,7 +150,7 @@ return Widget.extend({
this.trigger("close_chat_session");
},
on_click_fold: function () {
- if (config.device.size_class !== config.device.SIZES.XS) {
+ if (!config.device.isMobile) {
this.toggle_fold();
this.trigger("fold_channel", this.channel_id, this.folded);
}