mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
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
This commit is contained in:
parent
d4ed4a135c
commit
3a3775b523
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue