Keep guest rooms moderated and restore owner moderation
CI/CD / test_and_check_app (push) Successful in 2m22s
CI/CD / Publish immutable image (push) Successful in 1m16s

This commit is contained in:
2026-09-24 15:02:05 +02:00
parent 4dfe79ce5c
commit 33df9e49ab
6 changed files with 267 additions and 11 deletions
@@ -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'