You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03: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:
@@ -306,8 +306,9 @@ export default class CallHandler {
|
|||||||
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
|
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
|
||||||
title, description,
|
title, description,
|
||||||
});
|
});
|
||||||
} else if (call.hangupReason === CallErrorCode.AnsweredElsewhere) {
|
} else if (
|
||||||
this.play(AudioID.Busy);
|
call.hangupReason === CallErrorCode.AnsweredElsewhere && oldState === CallState.Connecting
|
||||||
|
) {
|
||||||
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
|
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
|
||||||
title: _t("Answered Elsewhere"),
|
title: _t("Answered Elsewhere"),
|
||||||
description: _t("The call was answered on another device."),
|
description: _t("The call was answered on another device."),
|
||||||
|
|||||||
Reference in New Issue
Block a user