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:
parent
7d488faf59
commit
bf485720f5
4 changed files with 90 additions and 46 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue