[FIX] im_livechat: properly call chatbotRestoreSession

Task-2960978

closes odoo/odoo#98720

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Alexandre Kühn
2022-08-24 18:38:59 +02:00
parent 145234749a
commit df6a4a7e10
@@ -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();
}
},
},