mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-02 11:01:23 +02:00
Merge pull request #5455 from matrix-org/dbkr/answered_elsewhere
Only show 'answered elsewhere' if we tried to answer too
This commit is contained in:
commit
9f42d3e549
@ -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…
x
Reference in New Issue
Block a user