summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread/thread.js
diff options
context:
space:
mode:
authorJulien Giannone <jgi@odoo.com>2021-01-15 10:32:52 +0000
committerJulien Giannone <jgi@odoo.com>2021-02-12 10:08:57 +0000
commita257e0ede12ead06c0f8dba90c3868761da6ea71 (patch)
tree9a85656d593e6c152b66c284d0e2d04ba908e42e /addons/mail/static/src/models/thread/thread.js
parent016dedf172f750a0fcb1138a798faf2a224d513e (diff)
[FIX] mail: (mobile) Prevent server sync for open/close state
This commit prevents the opening/closure of a channel on mobile when the action is performed on desktop and reciprocally closes odoo/odoo#64599 Tasks-id: 2267593 Related: odoo/enterprise#16296 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread/thread.js')
-rw-r--r--addons/mail/static/src/models/thread/thread.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js
index 0446baa9f8e..31339e063f3 100644
--- a/addons/mail/static/src/models/thread/thread.js
+++ b/addons/mail/static/src/models/thread/thread.js
@@ -1546,6 +1546,9 @@ function factory(dependencies) {
// avoid crash during destroy
return;
}
+ if (this.env.messaging.device.isMobile) {
+ return;
+ }
if (this.serverFoldState === 'closed') {
this.env.messaging.chatWindowManager.closeThread(this, {
notifyServer: false,