mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Handle user_busy in voip calls
Newly added to MSC2746
This commit is contained in:
parent
776b7100b5
commit
c4a26893a0
2 changed files with 5 additions and 0 deletions
|
@ -462,6 +462,9 @@ export default class CallHandler extends EventEmitter {
|
||||||
if (call.hangupReason === CallErrorCode.UserHangup) {
|
if (call.hangupReason === CallErrorCode.UserHangup) {
|
||||||
title = _t("Call Declined");
|
title = _t("Call Declined");
|
||||||
description = _t("The other party declined the call.");
|
description = _t("The other party declined the call.");
|
||||||
|
} else if (call.hangupReason === CallErrorCode.UserBusy) {
|
||||||
|
title = _t("User Busy");
|
||||||
|
description = _t("The user you called is busy.");
|
||||||
} else if (call.hangupReason === CallErrorCode.InviteTimeout) {
|
} else if (call.hangupReason === CallErrorCode.InviteTimeout) {
|
||||||
title = _t("Call Failed");
|
title = _t("Call Failed");
|
||||||
// XXX: full stop appended as some relic here, but these
|
// XXX: full stop appended as some relic here, but these
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
"Call Failed": "Call Failed",
|
"Call Failed": "Call Failed",
|
||||||
"Call Declined": "Call Declined",
|
"Call Declined": "Call Declined",
|
||||||
"The other party declined the call.": "The other party declined the call.",
|
"The other party declined the call.": "The other party declined the call.",
|
||||||
|
"User Busy": "User Busy",
|
||||||
|
"The user you called is busy.": "The user you called is busy.",
|
||||||
"The remote side failed to pick up": "The remote side failed to pick up",
|
"The remote side failed to pick up": "The remote side failed to pick up",
|
||||||
"The call could not be established": "The call could not be established",
|
"The call could not be established": "The call could not be established",
|
||||||
"Answered Elsewhere": "Answered Elsewhere",
|
"Answered Elsewhere": "Answered Elsewhere",
|
||||||
|
|
Loading…
Reference in a new issue