From 3a3775b5233642c3be3b378c40e5ecad1dc3f63d Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 Nov 2020 15:17:20 +0000 Subject: [PATCH] Only show 'answered elsewhere' if we tried to answer too and don't play the hangup tone Fixes https://github.com/vector-im/element-web/issues/15735 --- src/CallHandler.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index abfe5cc9bf..b5f696008d 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -306,8 +306,9 @@ export default class CallHandler { Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, { title, description, }); - } else if (call.hangupReason === CallErrorCode.AnsweredElsewhere) { - this.play(AudioID.Busy); + } else if ( + call.hangupReason === CallErrorCode.AnsweredElsewhere && oldState === CallState.Connecting + ) { Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, { title: _t("Answered Elsewhere"), description: _t("The call was answered on another device."),