Handle bad gateway error when starting direct chat
This commit is contained in:
parent
eb2c98f67f
commit
bb7178a5c4
|
@ -56,8 +56,8 @@ and this project adheres to
|
||||||
- Fix the error message shown when trying to start a direct chat with or
|
- Fix the error message shown when trying to start a direct chat with or
|
||||||
invite a non-existing user
|
invite a non-existing user
|
||||||
|
|
||||||
- Handle Matrix 502 errors returned when trying to invite a user with an
|
- Handle Matrix 502 errors returned when trying to start a direct chat or
|
||||||
incorrect or unresponsive server in their ID
|
invite a user with an incorrect or unresponsive server in their ID
|
||||||
|
|
||||||
- Correctly hide `socket.gaierror` error popups that appear when the
|
- Correctly hide `socket.gaierror` error popups that appear when the
|
||||||
internet connection drops
|
internet connection drops
|
||||||
|
|
|
@ -47,6 +47,12 @@ HBox {
|
||||||
if (type === "MatrixNotFound")
|
if (type === "MatrixNotFound")
|
||||||
txt = qsTr("This user does not exist")
|
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
|
errorMessage.text = txt
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user