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

Commit

Permalink
Don't play call end sound for calls that never started
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Dec 18, 2020
1 parent 7bd2f2c commit 453575d
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 453575d

Please sign in to comment.