RocketChat / Rocket.Chat.Livechat

New Livechat client written in Preact
https://rocket.chat/omnichannel/live-chat
MIT License
247 stars 229 forks source link

Livechat Widget "deletes" chat, shows again when popout or refreshing #678

Open rsgodinez opened 2 years ago

rsgodinez commented 2 years ago

Hi.

We invoke the widget.

this.showWidget(); this.initialize({ theme: { title: title } }); this.setDepartment(depart); this.maximizeWidget();

Widget shows correctly, so we register and start chatting:

image

image

image

Chat goes OK:

image

But when clicking on minimize:

this.onChatMinimized(function() { RocketChat(function() { this.hideWidget(); });

image

And then invoking the widget again

this.showWidget(); this.initialize({ theme: { title: title } }); this.setDepartment(depart); this.maximizeWidget();

chat shows like it has been "deleted":

image

if we use popout, it shows the chat text again

image

Same happens if we refresh F5.

But it can be confusing for the users, if they minimize and maximize without doing refresh F5. This issue/bug didn´t happen in livechat included with rocket.chat 3.11.1. It's happening in livechat included with rocket.chat 4.3.1.