From d839629aea0f6a2322d4ee7b3137abc1fadb8481 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 27 Sep 2018 23:51:03 +0100 Subject: [PATCH] fudge hangup reasons --- src/TextForEvent.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 2b19216a52..be244e292c 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -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}); }