From 477281a78f41834bb048ddaa3754b6a88cebceb8 Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 24 Feb 2026 02:06:16 +0100 Subject: [PATCH] fix soundboard --- src/voice.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/voice.rs b/src/voice.rs index b15b81c..a0a34f0 100644 --- a/src/voice.rs +++ b/src/voice.rs @@ -259,7 +259,10 @@ impl VoiceHub { return; }; - for peer in room.values() { + for (peer_id, peer) in room.iter() { + if *peer_id == user_id { + continue; + } let _ = peer.tx.send(ServerEvent::PlaySound { user_id, sound_url: sound_url.clone(),