Handle user_busy in voip calls

Newly added to MSC2746
This commit is contained in:
David Baker 2021-05-27 18:57:22 +01:00
parent 776b7100b5
commit c4a26893a0
2 changed files with 5 additions and 0 deletions

View file

@ -462,6 +462,9 @@ export default class CallHandler extends EventEmitter {
if (call.hangupReason === CallErrorCode.UserHangup) {
title = _t("Call Declined");
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) {
title = _t("Call Failed");
// XXX: full stop appended as some relic here, but these