Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5506 from matrix-org/dbkr/silent_call_end_for_non…
Browse files Browse the repository at this point in the history
…_started_calls

Don't play call end sound for calls that never started
  • Loading branch information
dbkr authored Dec 18, 2020
2 parents d3be7b7 + 453575d commit 3037aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CallHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ export default class CallHandler {
title: _t("Answered Elsewhere"),
description: _t("The call was answered on another device."),
});
} else {
} else if (oldState !== CallState.Fledgling) {
// don't play the end-call sound for calls that never got off the ground
this.play(AudioID.CallEnd);
}
}
Expand Down

0 comments on commit 3037aac

Please sign in to comment.