From df6a4a7e103032352a494461ffade412fdc16b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Tue, 23 Aug 2022 15:03:47 +0000 Subject: [PATCH] [FIX] im_livechat: properly call chatbotRestoreSession MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-2960978 closes odoo/odoo#98720 Signed-off-by: Sébastien Theys (seb) --- addons/im_livechat/static/src/models/public_livechat_global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/im_livechat/static/src/models/public_livechat_global.js b/addons/im_livechat/static/src/models/public_livechat_global.js index 857c3f7bbd1..84e652f333c 100644 --- a/addons/im_livechat/static/src/models/public_livechat_global.js +++ b/addons/im_livechat/static/src/models/public_livechat_global.js @@ -225,7 +225,7 @@ registerModel({ } else if (this.chatbotState === 'restore_session') { // we landed on a website page and a chatbot script is currently running // -> restore the user's session (see 'chatbotRestoreSession') - this.chatbotRestoreSession(); + this.livechatButtonView.chatbotRestoreSession(); } }, },