mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-29 01:28:29 +00:00
fix room opens at home after leave rejoin
This commit is contained in:
parent
44161c4157
commit
596f7ec66e
|
@ -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