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:
parent
0849b0e205
commit
263a51938d
3 changed files with 13 additions and 0 deletions
|
@ -73,6 +73,9 @@ class RoomViewStore extends Store {
|
|||
case 'join_room':
|
||||
this._joinRoom(payload);
|
||||
break;
|
||||
case 'on_logged_out':
|
||||
this.reset();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue