Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fa1a956

Browse files
authored
Merge pull request #5345 from matrix-org/dbkr/select_answer
Support 'answered elsewhere'
2 parents a135262 + 765fdf9 commit fa1a956

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/CallHandler.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,12 @@ export default class CallHandler {
262262
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
263263
title, description,
264264
});
265+
} else if (call.hangupReason === CallErrorCode.AnsweredElsewhere) {
266+
this.play(AudioID.Busy);
267+
Modal.createTrackedDialog('Call Handler', 'Call Failed', ErrorDialog, {
268+
title: _t("Answered Elsewhere"),
269+
description: _t("The call was answered on another device."),
270+
});
265271
} else {
266272
this.play(AudioID.CallEnd);
267273
}

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"The other party declined the call.": "The other party declined the call.",
4040
"The remote side failed to pick up": "The remote side failed to pick up",
4141
"The call could not be established": "The call could not be established",
42+
"Answered Elsewhere": "Answered Elsewhere",
43+
"The call was answered on another device.": "The call was answered on another device.",
4244
"Call failed due to misconfigured server": "Call failed due to misconfigured server",
4345
"Please ask the administrator of your homeserver (<code>%(homeserverDomain)s</code>) to configure a TURN server in order for calls to work reliably.": "Please ask the administrator of your homeserver (<code>%(homeserverDomain)s</code>) to configure a TURN server in order for calls to work reliably.",
4446
"Alternatively, you can try to use the public server at <code>turn.matrix.org</code>, but this will not be as reliable, and it will share your IP address with that server. You can also manage this in Settings.": "Alternatively, you can try to use the public server at <code>turn.matrix.org</code>, but this will not be as reliable, and it will share your IP address with that server. You can also manage this in Settings.",

0 commit comments

Comments
 (0)