You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Add text for invite_timeout and fix message for ice_failed.
This commit is contained in:
@ -145,13 +145,15 @@ function textForCallHangupEvent(event) {
|
|||||||
const eventContent = event.getContent();
|
const eventContent = event.getContent();
|
||||||
let reason = "";
|
let reason = "";
|
||||||
if(!MatrixClientPeg.get().supportsVoip()) {
|
if(!MatrixClientPeg.get().supportsVoip()) {
|
||||||
reason = _t('(not supported by this browser)');
|
reason = _t('(not supported by this browser)');
|
||||||
} else if(eventContent.reason) {
|
} else if(eventContent.reason) {
|
||||||
if (eventContent.reason === "ice_failed") {
|
if (eventContent.reason === "ice_failed") {
|
||||||
reason = _t('(call failed to connect)');
|
reason = _t('(could not connect media)');
|
||||||
} else {
|
} else if (eventContent.reason === "invite_timeout") {
|
||||||
reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason});
|
reason = _t('(no answer)');
|
||||||
}
|
} else {
|
||||||
|
reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return _t('%(senderName)s ended the call.', {senderName}) + ' ' + reason;
|
return _t('%(senderName)s ended the call.', {senderName}) + ' ' + reason;
|
||||||
}
|
}
|
||||||
|
@ -637,7 +637,8 @@
|
|||||||
"VoIP conference finished.": "VoIP conference finished.",
|
"VoIP conference finished.": "VoIP conference finished.",
|
||||||
"VoIP conference started.": "VoIP conference started.",
|
"VoIP conference started.": "VoIP conference started.",
|
||||||
"VoIP is unsupported": "VoIP is unsupported",
|
"VoIP is unsupported": "VoIP is unsupported",
|
||||||
"(call failed to connect)": "(call failed to connect)",
|
"(could not connect media)": "(could not connect media)",
|
||||||
|
"(no answer)": "(no answer)",
|
||||||
"(unknown failure: %(reason)s)": "(unknown failure: %(reason)s)",
|
"(unknown failure: %(reason)s)": "(unknown failure: %(reason)s)",
|
||||||
"(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)",
|
"(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)",
|
||||||
"Warning!": "Warning!",
|
"Warning!": "Warning!",
|
||||||
|
@ -576,7 +576,8 @@
|
|||||||
"VoIP conference finished.": "VoIP conference finished.",
|
"VoIP conference finished.": "VoIP conference finished.",
|
||||||
"VoIP conference started.": "VoIP conference started.",
|
"VoIP conference started.": "VoIP conference started.",
|
||||||
"VoIP is unsupported": "VoIP is unsupported",
|
"VoIP is unsupported": "VoIP is unsupported",
|
||||||
"(call failed to connect)": "(call failed to connect)",
|
"(could not connect media)": "(could not connect media)",
|
||||||
|
"(no answer)": "(no answer)",
|
||||||
"(unknown failure: %(reason)s)": "(unknown failure: %(reason)s)",
|
"(unknown failure: %(reason)s)": "(unknown failure: %(reason)s)",
|
||||||
"(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)",
|
"(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)",
|
||||||
"Warning!": "Warning!",
|
"Warning!": "Warning!",
|
||||||
|
Reference in New Issue
Block a user