Skip to content

Commit

Permalink
fix room opens at home after leave rejoin (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura authored Jul 28, 2024
1 parent 44161c4 commit 74dc76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/state/room/roomToParents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 74dc76e

Please sign in to comment.