Add deafening support

This commit is contained in:
Piotr Osiewicz 2023-11-27 15:12:13 +01:00
parent bf4211b03a
commit a71180257d
4 changed files with 53 additions and 2 deletions

View file

@ -371,6 +371,12 @@ impl CallHandler for TestCallHandler {
fn toggle_mute(&self, cx: &mut AppContext) {}
fn toggle_screen_share(&self, cx: &mut AppContext) {}
fn toggle_deafen(&self, cx: &mut AppContext) {}
fn is_deafened(&self, cx: &AppContext) -> Option<bool> {
None
}
}
impl AppState {
@ -483,7 +489,9 @@ pub trait CallHandler {
) -> Task<Result<()>>;
fn remote_participants(&self, cx: &AppContext) -> Option<Vec<(Arc<User>, PeerId)>>;
fn is_muted(&self, cx: &AppContext) -> Option<bool>;
fn is_deafened(&self, cx: &AppContext) -> Option<bool>;
fn toggle_mute(&self, cx: &mut AppContext);
fn toggle_deafen(&self, cx: &mut AppContext);
fn toggle_screen_share(&self, cx: &mut AppContext);
}