Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

fix(desktop): no second ringtone on the phone while it's the PC's speaker

Bee23f4fdc7ee9d
diff --git a/desktop/app/src/calls.rs b/desktop/app/src/calls.rs
index d7d786a..dee1e77 100644
--- a/desktop/app/src/calls.rs
+++ b/desktop/app/src/calls.rs
@@ -317,7 +317,9 @@ fn show_ringing(device: DeviceId, call: &CallState, silenced: bool) {
image: None,
actions,
reply: None,
- silent: silenced,
+ // With Phone as speaker on, this PC's sound goes to the phone, so a
+ // ring here would only play again on a phone that's ringing already.
+ silent: silenced || crate::pc_audio_stream::is_enabled(),
progress: None,
call: true,
});