mirror of https://github.com/vector-im/riot-web
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/15735pull/21833/head
parent
d4ed4a135c
commit
3a3775b523
|
@ -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."),
|
||||
|
|
Loading…
Reference in New Issue