Skip to content

[FIX] "User is typing" not working in new Livechat session#11670

Merged
sampaiodiego merged 1 commit intodevelopfrom
fix-msg-typing-not-working-on-livechat
Aug 14, 2018
Merged

[FIX] "User is typing" not working in new Livechat session#11670
sampaiodiego merged 1 commit intodevelopfrom
fix-msg-typing-not-working-on-livechat

Conversation

@renatobecker-zz
Copy link
Copy Markdown

Closes #11235.

When a new Livechat room is created and the agent starts typing, the 'Typing indicator' is not displayed in the Livechat widget. The Typing Indicator is only displayed in case the visitor reloads the widget.
This issue was happening because when a new Livechat session is started, the visitor.getRoom (true) method assigns a new roomId to the visitor object, but the room that will receive this roomId is not yet created on DB.
To fix this issue, another ReactiveVar will be used to assign a callback in Notifications.onRoom to detect when the agent is typing. The visitor.getRoom() has been replaced by Livechat.room.

@sampaiodiego sampaiodiego merged commit a5175e9 into develop Aug 14, 2018
@sampaiodiego sampaiodiego deleted the fix-msg-typing-not-working-on-livechat branch August 14, 2018 20:51
@sampaiodiego sampaiodiego mentioned this pull request Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typing indicator not displayed in new Livechat session

5 participants