1
0
Fork 0
forked from mirror/cinny

fix room opens at home after leave rejoin (#1848)

This commit is contained in:
Ajay Bura 2024-07-28 19:10:21 +05:30 committed by GitHub
parent 44161c4157
commit 74dc76e22e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}