summaryrefslogtreecommitdiff
path: root/addons/im_livechat/static/src/models/thread/thread.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2020-09-10 16:34:50 +0000
committerAlexandre Kühn <aku@odoo.com>2020-09-24 17:59:12 +0000
commitb39f39b598d3a930034f9981712cf5ec41ad301c (patch)
tree26265a176e9731898ab4b9a13c5fdd048c775fa4 /addons/im_livechat/static/src/models/thread/thread.js
parent5fe3ad548e410fbe2eddd7f67aa4b89b81746f1a (diff)
[FIX] im_livechat, mail, website_livechat: open chat website visitor
Also fix an issue with livechats not being considered in 'chat' filter of messaging menu. Task-Id 2282426 closes odoo/odoo#58466 X-original-commit: 631e52536964763bbfe857305f023e5e67084e95 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/im_livechat/static/src/models/thread/thread.js')
-rw-r--r--addons/im_livechat/static/src/models/thread/thread.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/im_livechat/static/src/models/thread/thread.js b/addons/im_livechat/static/src/models/thread/thread.js
index 9f728f62d40..b3984500f8d 100644
--- a/addons/im_livechat/static/src/models/thread/thread.js
+++ b/addons/im_livechat/static/src/models/thread/thread.js
@@ -86,6 +86,12 @@ registerInstancePatchModel('mail.thread', 'im_livechat/static/src/models/thread/
}
return this._super();
},
+ /**
+ * @override
+ */
+ _computeIsChatChannel() {
+ return this.channel_type === 'livechat' || this._super();
+ },
});
});