From bb7178a5c4647d67771faadc79b79296e57d4ad4 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 2 Jun 2020 20:24:03 -0400 Subject: [PATCH] Handle bad gateway error when starting direct chat --- CHANGELOG.md | 4 ++-- src/gui/Pages/AddChat/DirectChat.qml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70db97c7..7a6ad4c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,8 +56,8 @@ and this project adheres to - Fix the error message shown when trying to start a direct chat with or invite a non-existing user -- Handle Matrix 502 errors returned when trying to invite a user with an - incorrect or unresponsive server in their ID +- Handle Matrix 502 errors returned when trying to start a direct chat or + invite a user with an incorrect or unresponsive server in their ID - Correctly hide `socket.gaierror` error popups that appear when the internet connection drops diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index 580a13b4..7d4c9152 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -47,6 +47,12 @@ HBox { if (type === "MatrixNotFound") txt = qsTr("This user does not exist") + if (type === "MatrixBadGateway") + txt = qsTr( + "Server error while trying to find user, please " + + "verify the entered user ID" + ) + errorMessage.text = txt }) },