diff --git a/crates/web/src/components/call_page.rs b/crates/web/src/components/call_page.rs index e0d882eb..cef0c658 100644 --- a/crates/web/src/components/call_page.rs +++ b/crates/web/src/components/call_page.rs @@ -167,7 +167,7 @@ pub fn CallPage( let handle = use_context::().unwrap(); let vm = use_context::().unwrap(); - // Local video stream — stored globally in VoiceState so it survives remounts. + // Local video stream — stored globally in VoiceSignals so it survives remounts. let local_video_stream = app_state.voice.local_video_stream; // Duration timer — increments every second. Clean up on unmount so diff --git a/crates/web/src/state.rs b/crates/web/src/state.rs index e1d55e85..e5066925 100644 --- a/crates/web/src/state.rs +++ b/crates/web/src/state.rs @@ -81,11 +81,11 @@ pub struct ParsedJoinToken { #[derive(Clone, Copy)] pub struct AppState { - pub chat: ChatState, + pub chat: ChatSignals, pub network: NetworkState, - pub server: ServerState, + pub server: ServerSignals, pub ui: UiState, - pub voice: VoiceState, + pub voice: VoiceSignals, pub trust: TrustState, pub presence: PresenceUiState, /// Local-search UI state (phase 2e — `local-search.md`). @@ -224,7 +224,7 @@ pub struct TrustState { } #[derive(Clone, Copy)] -pub struct ChatState { +pub struct ChatSignals { pub messages: ReadSignal>, pub current_channel: ReadSignal, pub channels: ReadSignal>, @@ -249,7 +249,7 @@ pub struct NetworkState { } #[derive(Clone, Copy)] -pub struct ServerState { +pub struct ServerSignals { pub servers: ReadSignal>, pub active_server_id: ReadSignal, pub active_server_name: ReadSignal, @@ -288,7 +288,7 @@ pub struct UiState { } #[derive(Clone, Copy)] -pub struct VoiceState { +pub struct VoiceSignals { pub voice_channel: ReadSignal>, pub voice_muted: ReadSignal, pub voice_deafened: ReadSignal, @@ -590,7 +590,7 @@ pub fn create_signals() -> InitialSignals { let (profile_open, set_profile_open) = signal(Option::::None); let app_state = AppState { - chat: ChatState { + chat: ChatSignals { messages, current_channel, channels, @@ -608,7 +608,7 @@ pub fn create_signals() -> InitialSignals { connection_state, loading, }, - server: ServerState { + server: ServerSignals { servers, active_server_id, active_server_name, @@ -635,7 +635,7 @@ pub fn create_signals() -> InitialSignals { join_token, join_status, }, - voice: VoiceState { + voice: VoiceSignals { voice_channel, voice_muted, voice_deafened,