[FIX] im_livechat: livechat now diplay messages.

The busbus wasn't available in the then clause and caused
the chat to be partially broken: message were not displayed
in customer window.
This commit is contained in:
XavierDo
2018-02-28 09:56:45 +01:00
parent 4f4fa90aea
commit 561db474e0
@@ -155,8 +155,8 @@ var LivechatButton = Widget.extend({
self.send_welcome_message();
self.render_messages();
this.busBus.add_channel(channel.uuid);
this.busBus.start_polling();
self.busBus.add_channel(channel.uuid);
self.busBus.start_polling();
utils.set_cookie('im_livechat_session', JSON.stringify(channel), 60*60);
utils.set_cookie('im_livechat_auto_popup', JSON.stringify(false), 60*60);