fudge hangup reasons

pull/21833/head
Matthew Hodgson 2018-09-27 23:51:03 +01:00
부모 d3d4768ff0
커밋 d839629aea
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -275,6 +275,12 @@ function textForCallHangupEvent(event) {
reason = _t('(could not connect media)');
} else if (eventContent.reason === "invite_timeout") {
reason = _t('(no answer)');
} else if (eventContent.reason === "user hangup") {
// workaround for https://github.com/vector-im/riot-web/issues/5178
// it seems Android randomly sets a reason of "user hangup" which is
// interpreted as an error code :(
// https://github.com/vector-im/riot-android/issues/2623
reason = '';
} else {
reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason});
}