feat(client): redesign native UI, themes, settings and avatars

Separate conversation drafts and voice view state, add native settings and restricted CSS themes, implement validated avatar cropping, and refresh dependencies with documented desktop compatibility backports.
This commit is contained in:
Loki 2026-10-24 14:23:48 +02:00
parent 44d284a568
commit 8e5ab56611
Signed by: boba
GPG key ID: 253067914055423B
276 changed files with 53546 additions and 3399 deletions

View file

@ -17,6 +17,7 @@ use crate::audio::{
pub use playback::JitterConfig;
pub struct AudioPipeline {
stopped: Arc<AtomicBool>,
encoded_rx: Receiver<EncodedFrame>,
voice_tx: Sender<IncomingVoice>,
_encoded_tx: Sender<EncodedFrame>,
@ -30,6 +31,13 @@ pub struct AudioPipeline {
last_remote_voice_ms: Arc<AtomicU64>,
}
impl Drop for AudioPipeline {
fn drop(&mut self) {
// Releasing a voice session must release its microphone even while muted.
self.stopped.store(true, Ordering::Release);
}
}
impl AudioPipeline {
pub fn poll_encoded(&self) -> Option<EncodedFrame> {
self.encoded_rx.try_recv().ok()
@ -125,6 +133,8 @@ pub fn start(cfg: PipelineConfig) -> anyhow::Result<AudioPipeline> {
let last_remote_voice_ms = Arc::new(AtomicU64::new(0));
let last_remote_voice_play = last_remote_voice_ms.clone();
let stopped = Arc::new(AtomicBool::new(false));
let capture_stopped = stopped.clone();
let channel_id = cfg.channel_key;
let enc_tx = encoded_tx.clone();
std::thread::spawn(move || {
@ -137,6 +147,7 @@ pub fn start(cfg: PipelineConfig) -> anyhow::Result<AudioPipeline> {
frame_ms,
bitrate_cap,
local_speaking_cap,
capture_stopped,
) {
tracing::error!("capture: {e}");
}
@ -155,6 +166,7 @@ pub fn start(cfg: PipelineConfig) -> anyhow::Result<AudioPipeline> {
});
Ok(AudioPipeline {
stopped,
encoded_rx,
voice_tx,
_encoded_tx: encoded_tx,