From 0f0df0850090146e6b9fbde10e781ae76d9b9c6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 28 Nov 2026 22:28:53 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20top=20speaker=20strip=20c?= =?UTF-8?q?ounts=20screen-share=20audio=20as=20speaking=20(Waves::audible)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/camera_view.rs | 2 +- crates/client/src/gui/wave.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/client/src/gui/camera_view.rs b/crates/client/src/gui/camera_view.rs index 91a3d99..342879b 100644 --- a/crates/client/src/gui/camera_view.rs +++ b/crates/client/src/gui/camera_view.rs @@ -260,7 +260,7 @@ impl Yumush { } fn slots(&self, ids: &[Id]) -> (Vec, usize) { - let speaking = |id: &Id| self.chat.waves.speaking.contains(id); + let speaking = |id: &Id| self.chat.waves.audible(*id); let mut shown: Vec = ids .iter() .filter(|id| speaking(id)) diff --git a/crates/client/src/gui/wave.rs b/crates/client/src/gui/wave.rs index 26f7855..20683ad 100644 --- a/crates/client/src/gui/wave.rs +++ b/crates/client/src/gui/wave.rs @@ -138,6 +138,10 @@ impl Waves { })) } + pub fn audible(&self, id: Id) -> bool { + self.speaking.contains(&id) || self.share.contains_key(&id) + } + pub fn share(&self, id: Id) -> Option<&VecDeque> { self.share.get(&id).map(|wave| &wave.bars) }