mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 07:20:29 +03:00
Fix error on room leave
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
ca3cced6ad
commit
34bb5f9928
2 changed files with 24 additions and 22 deletions
|
|
@ -73,6 +73,8 @@ class Navigation extends EventEmitter {
|
|||
this.emit(cons.events.navigation.SPACE_SELECTED, this.selectedSpaceId);
|
||||
},
|
||||
[cons.actions.navigation.SELECT_ROOM]: () => {
|
||||
if (this.selectedRoomId === action.roomId) return;
|
||||
|
||||
const prevSelectedRoomId = this.selectedRoomId;
|
||||
this.selectedRoomId = action.roomId;
|
||||
this.removeRecentRoom(prevSelectedRoomId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue