aboutsummaryrefslogtreecommitdiff
path: root/userapi/internal/user_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/internal/user_api.go')
-rw-r--r--userapi/internal/user_api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/userapi/internal/user_api.go b/userapi/internal/user_api.go
index ea97fd35..32f3d84b 100644
--- a/userapi/internal/user_api.go
+++ b/userapi/internal/user_api.go
@@ -25,7 +25,6 @@ import (
appserviceAPI "github.com/matrix-org/dendrite/appservice/api"
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
- "github.com/matrix-org/dendrite/clientapi/jsonerror"
fedsenderapi "github.com/matrix-org/dendrite/federationapi/api"
"github.com/matrix-org/dendrite/internal/pushrules"
"github.com/matrix-org/gomatrixserverlib"
@@ -715,7 +714,7 @@ func (a *UserInternalAPI) uploadBackupKeys(ctx context.Context, req *api.Perform
return res, fmt.Errorf("backup was deleted")
}
if version != req.Version {
- return res, jsonerror.WrongBackupVersionError(version)
+ return res, spec.WrongBackupVersionError(version)
}
res.Exists = true
res.Version = version