mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Reset store state when logging out
This prevents leaking of state that we do not want to share with the next user
This commit is contained in:
@@ -73,6 +73,9 @@ class RoomViewStore extends Store {
|
||||
case 'join_room':
|
||||
this._joinRoom(payload);
|
||||
break;
|
||||
case 'on_logged_out':
|
||||
this.reset();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user