Improve "user not found" error messages

This commit is contained in:
miruka 2020-06-02 20:30:04 -04:00
parent bb7178a5c4
commit 8ec715eab7
3 changed files with 9 additions and 9 deletions

View File

@ -33,6 +33,9 @@ and this project adheres to
and build files before regenerating the Makefile and installing: and build files before regenerating the Makefile and installing:
`sudo make uninstall; make clean; qmake && make && sudo make install` `sudo make uninstall; make clean; qmake && make && sudo make install`
- Improve the error messages shown when trying to start a direct chat with or
invite a non-existing user
### Removed ### Removed
- Removed delay when multiple rooms are removed/hidden from the list. - Removed delay when multiple rooms are removed/hidden from the list.
@ -53,9 +56,6 @@ and this project adheres to
- Fix Python pickling error when trying to redecrypt events after importing - Fix Python pickling error when trying to redecrypt events after importing
E2E keys ([#50](https://github.com/mirukana/mirage/issues/50)) E2E keys ([#50](https://github.com/mirukana/mirage/issues/50))
- 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 start a direct chat or - 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 invite a user with an incorrect or unresponsive server in their ID

View File

@ -45,12 +45,12 @@ HBox {
"@username:homeserver") "@username:homeserver")
if (type === "MatrixNotFound") if (type === "MatrixNotFound")
txt = qsTr("This user does not exist") txt = qsTr("User not found, please verify the entered ID")
if (type === "MatrixBadGateway") if (type === "MatrixBadGateway")
txt = qsTr( txt = qsTr(
"Server error while trying to find user, please " + "Could not contact this user's server, " +
"verify the entered user ID" "please verify the entered ID"
) )
errorMessage.text = txt errorMessage.text = txt

View File

@ -105,12 +105,12 @@ BoxPopup {
"servers, can't invite %1").arg(user) : "servers, can't invite %1").arg(user) :
type === "MatrixNotFound" ? type === "MatrixNotFound" ?
qsTr("%1 not found, please verify the entered user ID") qsTr("%1 not found, please verify the entered ID")
.arg(user) : .arg(user) :
type === "MatrixBadGateway" ? type === "MatrixBadGateway" ?
qsTr("Server error while trying to find %1, please " + qsTr("Could not contact %1's server, " +
"verify the entered user ID").arg(user) : "please verify the entered ID").arg(user) :
type === "MatrixUnsupportedRoomVersion" ? type === "MatrixUnsupportedRoomVersion" ?
qsTr("%1's server does not support this room's version") qsTr("%1's server does not support this room's version")