Skip to content

[BUG] Livechat agent joining: No refresh of Livechat-Client-Header #12849

@mrsimpson

Description

@mrsimpson

Description:

The livechat agent in a conversation shall be pictured (literally) in the livechat-header of the client. This is not the case with guest-pool configured.
bildschirmaufnahme 2018-12-04 um 23 19 28 mov

Steps to reproduce:

  1. Configure livechat with guest pool
  2. Open a client session
  3. Send a message from the client
  4. Pick the inquiry from the queue

Expected behavior:

The agent joined shall be shown in the client header

Actual behavior:

Only, once the client refreshed the browser, the agent's data is shown

Server Setup Information:

  • Version of Rocket.Chat Server: 0.70.4 && develop

Additional context

I have done quite some intense research on this issue.
I debugged / traced, that

  • the event agentData is properly emitted
  • the autorun in the client (_livechat.js) runs once on initialization, but no more once the agent joins
  • the streamer event handler function (this.stream.on) is never executed
  • the room ID which is used as the key for the streamer is the same for the emitted and listened-on-event

I added a patch with all logs and some other helpless tries I added, for convenience if it may help

I have seen that the streamer has undergone quite some changes on Oct. 24, so I at least can imagine that it may be an issue in the lib.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions