fix(context-menu): update all checkbox call sites to reactive subscribe+getChecked

This commit is contained in:
Jannis Braun
2026-03-24 21:48:26 +01:00
parent 7a25a2df7b
commit 0d91df166a
5 changed files with 10 additions and 10 deletions
@@ -83,12 +83,12 @@ export function VoiceChannel({ channelId, channelName, onClick, locked, canManag
}
// Mute User checkbox
const isUserMuted = useVoiceStore.getState().participantMutes.get(userId) ?? false;
items.push({
key: 'mute-user',
type: 'checkbox',
label: 'Mute User',
checked: isUserMuted,
subscribe: useVoiceStore.subscribe,
getChecked: () => useVoiceStore.getState().participantMutes.get(userId) ?? false,
onChange: (checked) => useVoiceStore.getState().setParticipantMute(userId, checked),
});