fix room opens at home after leave rejoin (#1848)
This commit is contained in:
parent
44161c4157
commit
74dc76e22e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export const useBindRoomToParentsAtom = (
|
|||
};
|
||||
|
||||
const handleMembershipChange = (room: Room, membership: string) => {
|
||||
if (room.getMyMembership() === Membership.Leave) {
|
||||
if (isSpace(room) && room.getMyMembership() === Membership.Leave) {
|
||||
setRoomToParents({ type: 'DELETE', roomId: room.roomId });
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue