mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 15:32:09 +00:00
Keep guest rooms moderated and restore owner moderation
This commit is contained in:
@@ -70,6 +70,17 @@ export function useRoomRealtime(
|
||||
...payload.state,
|
||||
};
|
||||
|
||||
const currentRoomPlayer = room.value.players.find(
|
||||
(player) => player.id === currentPlayer.value.id,
|
||||
);
|
||||
|
||||
if (currentRoomPlayer !== undefined) {
|
||||
currentPlayer.value = {
|
||||
...currentPlayer.value,
|
||||
is_moderator: currentRoomPlayer.is_moderator,
|
||||
};
|
||||
}
|
||||
|
||||
if (
|
||||
payload.change === 'votes_reset' ||
|
||||
payload.change === 'next_round'
|
||||
|
||||
Reference in New Issue
Block a user