diff --git a/src/app/state/room/roomToParents.ts b/src/app/state/room/roomToParents.ts index b58190c..f66662f 100644 --- a/src/app/state/room/roomToParents.ts +++ b/src/app/state/room/roomToParents.ts @@ -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; }