wip: tsc-ui streams panel, viewer, share dialog, settings, hotkeys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
12 files changed
+3324
-160
No files matched your search
@@ -209,6 +209,8 @@ pub struct SessionState {
|
||||
pub presence_source: Option<Source>,
|
||||
/// Our own channel while voice-connected.
|
||||
pub own_channel: Option<ChannelId>,
|
||||
/// Our own client id while voice-connected.
|
||||
pub own_client: Option<u16>,
|
||||
pub input_muted: bool,
|
||||
pub output_muted: bool,
|
||||
pub transmitting: bool,
|
||||
|
||||
@@ -433,6 +433,7 @@ impl Session {
|
||||
match e {
|
||||
VoiceEvent::Connected { name, flavor, own_client } => {
|
||||
self.state.voice = VoiceState::Connected;
|
||||
self.state.own_client = Some(own_client);
|
||||
self.emit_state();
|
||||
let capabilities = flavor.capabilities();
|
||||
if capabilities.streams
|
||||
@@ -501,6 +502,7 @@ impl Session {
|
||||
self.audio = None;
|
||||
self.state.voice = VoiceState::Disconnected;
|
||||
self.state.own_channel = None;
|
||||
self.state.own_client = None;
|
||||
self.emit_state();
|
||||
if let Some(reason) = reason {
|
||||
self.error(format!("voice: {reason}"));
|
||||
|
||||
Reference in new issue
Block a user