Browse Source
When explicitly leaving the current room through the room list view the chat view was detached. However, as the internal state of the Application object (which manages the placement of the chat view) was not updated the chat view was always hidden from that point on until the page was reloaded. Moreover, as the chat view was detached only when explicitly leaving the current room the chat view was not hidden for other users in the room if it was deleted by a moderator. As the "leaveCurrentRoom" event is triggered in the room channel when the current room is left, either explicitly or implicitly, now the Application object listens to that event and hides the chat view as needed when it is received. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>pull/871/head
2 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue