Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Do not play join sound in large meetings (#54337)

Yara 🏳️‍⚧️6f335c2f595f
diff --git a/crates/call/src/call_impl/room.rs b/crates/call/src/call_impl/room.rs
index f269dfdfbbe..108c5a46304 100644
--- a/crates/call/src/call_impl/room.rs
+++ b/crates/call/src/call_impl/room.rs
@@ -895,7 +895,8 @@ impl Room {
if this.created.elapsed() > Duration::from_millis(100) {
if let proto::ChannelRole::Guest = role {
Audio::play_sound(Sound::GuestJoined, cx);
- } else {
+ // Do not play join sound in large meetings
+ } else if this.remote_participants().len() < 10 {
Audio::play_sound(Sound::Joined, cx);
}
}