Mute mics by default
Fix bug when file ends in line with 1 more digit displayed than previous lines Remove stale UI elements from voice call development
This commit is contained in:
parent
07dc82409b
commit
5ceb258b3e
13 changed files with 147 additions and 51 deletions
27
crates/call/src/call_settings.rs
Normal file
27
crates/call/src/call_settings.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
use schemars::JsonSchema;
|
||||
use serde_derive::{Serialize, Deserialize};
|
||||
use settings::Setting;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct CallSettings {
|
||||
pub mute_on_join: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Default, Serialize, Deserialize, JsonSchema, Debug)]
|
||||
pub struct CallSettingsContent {
|
||||
pub mute_on_join: Option<bool>,
|
||||
}
|
||||
|
||||
impl Setting for CallSettings {
|
||||
const KEY: Option<&'static str> = Some("calls");
|
||||
|
||||
type FileContent = CallSettingsContent;
|
||||
|
||||
fn load(
|
||||
default_value: &Self::FileContent,
|
||||
user_values: &[&Self::FileContent],
|
||||
_: &gpui::AppContext,
|
||||
) -> anyhow::Result<Self> {
|
||||
Self::load_via_json_merge(default_value, user_values)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue