fudge hangup reasons
This commit is contained in:
parent
d3d4768ff0
commit
d839629aea
1 changed files with 6 additions and 0 deletions
|
@ -275,6 +275,12 @@ function textForCallHangupEvent(event) {
|
||||||
reason = _t('(could not connect media)');
|
reason = _t('(could not connect media)');
|
||||||
} else if (eventContent.reason === "invite_timeout") {
|
} else if (eventContent.reason === "invite_timeout") {
|
||||||
reason = _t('(no answer)');
|
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 {
|
} else {
|
||||||
reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason});
|
reason = _t('(unknown failure: %(reason)s)', {reason: eventContent.reason});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue