mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Add a store-backed voice.store.voiceStatus (idle | joining | securing | connected | reconnecting), written as the single source of truth from livekitSession at each lifecycle transition: joining at connectAndSetup start, securing when ECDH key exchange begins, connected on the connected transition (initial join and auto-reconnect), reconnecting when the room drops, idle on leaveVoice. joinVoiceChannel seeds joining optimistically on click. VoiceWidget renders the phase in its header: 'Connecting…' / 'Securing…' (amber) and a persistent '🔒 Secured' badge once the room key is ready, replacing the log-line-only E2EE feedback. While ui.store.connectionStatus is not 'connected', the widget disables its controls with a 'Reconnecting…' / 'Not connected' reason, and the VoiceCallbacks join/leave paths refuse to send over a down socket. LiveKit's own reconnection machinery is untouched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>