fix(client): keep the live voice session visible and stop orphaned microphones

Switching from room A to room B replaced the voice state with a joining
state while the microphone was still capturing in A, and a deleted room
left the capture pipeline running with no visible state.

A pending join is now stored separately, so the live session stays shown as
connected until the server acknowledges the new room or refuses it. The
capture pipeline is stopped whenever it no longer belongs to the current
voice target, whatever a pending join is waiting for.
This commit is contained in:
Loki 2026-10-25 09:54:37 +01:00
parent 7d488faf59
commit bf485720f5
Signed by: boba
GPG key ID: 253067914055423B
4 changed files with 90 additions and 46 deletions

View file

@ -21,6 +21,7 @@ impl Default for UiState {
browsing_dms: false,
showing_voice: false,
voice_target: None,
pending_voice_join: None,
vault_enabled: false,
scroll_bottom: false,
voice: VoiceUiState::Off,