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(),