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(); } }, },