Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
call: Restore mute_on_join behaviour
Piotr Osiewicz52119ca203c3
diff --git a/crates/call2/src/room.rs b/crates/call2/src/room.rsindex b55d3348dcc..e54455a87e5 100644--- a/crates/call2/src/room.rs+++ b/crates/call2/src/room.rs@@ -1,4 +1,7 @@-use crate::participant::{LocalParticipant, ParticipantLocation, RemoteParticipant};+use crate::{+ call_settings::CallSettings,+ participant::{LocalParticipant, ParticipantLocation, RemoteParticipant},+};use anyhow::{anyhow, Result};use audio::{Audio, Sound};use client::{@@ -18,6 +21,7 @@ use live_kit_client::{};use postage::{sink::Sink, stream::Stream, watch};use project::Project;+use settings::Settings as _;use std::{future::Future, mem, sync::Arc, time::Duration};use util::{post_inc, ResultExt, TryFutureExt};@@ -328,10 +332,9 @@ impl Room {}}- pub fn mute_on_join(_cx: &AppContext) -> bool {+ pub fn mute_on_join(cx: &AppContext) -> bool {// todo!() po: This should be uncommented, though then unmuting does not work- false- //CallSettings::get_global(cx).mute_on_join || client::IMPERSONATE_LOGIN.is_some()+ CallSettings::get_global(cx).mute_on_join || client::IMPERSONATE_LOGIN.is_some()}fn from_join_response(