Skip to content

Commit

Permalink
fix(multiplayer): unsubscribe channel in owner leave
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Apr 25, 2023
1 parent 27e5713 commit 66f7993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-multiplayer/src/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const RoomSet = (
delete stores.LIVESHARE.presence[key]
} catch (e) {}

if (key === stores.LIVESHARE.ownerKey) {
if (leftPresences.some((presence) => getOwner(presence))) {
await removePresence(channel)
}
})
Expand Down

0 comments on commit 66f7993

Please sign in to comment.