diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 9521ac3a6a..de12cec502 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -145,13 +145,15 @@ function textForCallHangupEvent(event) { const eventContent = event.getContent(); let reason = ""; if(!MatrixClientPeg.get().supportsVoip()) { - reason = _t('(not supported by this browser)'); + reason = _t('(not supported by this browser)'); } else if(eventContent.reason) { - if (eventContent.reason === "ice_failed") { - reason = _t('(call failed to connect)'); - } else { - reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason}); - } + if (eventContent.reason === "ice_failed") { + reason = _t('(could not connect media)'); + } else if (eventContent.reason === "invite_timeout") { + reason = _t('(no answer)'); + } else { + reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason}); + } } return _t('%(senderName)s ended the call.', {senderName}) + ' ' + reason; } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 93c5f2cf94..97e51c9613 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -637,7 +637,8 @@ "VoIP conference finished.": "VoIP conference finished.", "VoIP conference started.": "VoIP conference started.", "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)", "(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)", "Warning!": "Warning!", diff --git a/src/i18n/strings/en_US.json b/src/i18n/strings/en_US.json index 9038253a9b..580cb4d605 100644 --- a/src/i18n/strings/en_US.json +++ b/src/i18n/strings/en_US.json @@ -576,7 +576,8 @@ "VoIP conference finished.": "VoIP conference finished.", "VoIP conference started.": "VoIP conference started.", "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)", "(warning: cannot be disabled again!)": "(warning: cannot be disabled again!)", "Warning!": "Warning!",