Handle MatrixNotFound errors, not UserNotFound

UserNotFound doesn't exist anymore
This commit is contained in:
miruka 2020-06-02 20:19:09 -04:00
parent e676473f82
commit eb2c98f67f
4 changed files with 5 additions and 3 deletions

View File

@ -53,6 +53,9 @@ and this project adheres to
- Fix Python pickling error when trying to redecrypt events after importing
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 invite a user with an
incorrect or unresponsive server in their ID

View File

@ -2,7 +2,6 @@
- fix cursor over field
- update room highlight when creating new room
- unknownerror matrixnotfound when creatign directchat
- keyerror when forgetting room while loading members
- account order, and verify not adding to config fiel works
- Refetch profile after manual profile change, don't wait for a room event

View File

@ -44,7 +44,7 @@ HBox {
txt = qsTr("Invalid user ID, expected format is " +
"@username:homeserver")
if (type === "UserNotFound")
if (type === "MatrixNotFound")
txt = qsTr("This user does not exist")
errorMessage.text = txt

View File

@ -104,7 +104,7 @@ BoxPopup {
qsTr("This room rejects users from other matrix " +
"servers, can't invite %1").arg(user) :
type === "UserNotFound" ?
type === "MatrixNotFound" ?
qsTr("%1 not found, please verify the entered user ID")
.arg(user) :