diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-12-18 13:33:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 13:33:28 +0000 |
commit | fac71edc62508e517b188e00fb64651910761ff0 (patch) | |
tree | 8da8cc87de327c3fffa0325f16491b47ab34d2fb /appservice | |
parent | 65ff5c9a2c0b81cb9c6df6fb6e27418577eb1160 (diff) |
Fix #1655 by re-adding the appservice alias query (#1660)
Diffstat (limited to 'appservice')
-rw-r--r-- | appservice/api/query.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/appservice/api/query.go b/appservice/api/query.go index 29e374ac..cd74d866 100644 --- a/appservice/api/query.go +++ b/appservice/api/query.go @@ -20,9 +20,9 @@ package api import ( "context" "database/sql" + "errors" "github.com/matrix-org/dendrite/clientapi/auth/authtypes" - "github.com/matrix-org/dendrite/internal/eventutil" "github.com/matrix-org/dendrite/userapi/storage/accounts" "github.com/matrix-org/gomatrixserverlib" ) @@ -109,7 +109,7 @@ func RetrieveUserProfile( // If no user exists, return if !userResp.UserIDExists { - return nil, eventutil.ErrProfileNoExists + return nil, errors.New("no known profile for given user ID") } // Try to query the user from the local database again |