aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/devices.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/routing/devices.go')
-rw-r--r--federationapi/routing/devices.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/federationapi/routing/devices.go b/federationapi/routing/devices.go
index 6a2ef152..318c0a34 100644
--- a/federationapi/routing/devices.go
+++ b/federationapi/routing/devices.go
@@ -16,7 +16,6 @@ import (
"encoding/json"
"net/http"
- "github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
@@ -39,7 +38,7 @@ func GetUserDevices(
}
if res.Error != nil {
util.GetLogger(req.Context()).WithError(res.Error).Error("keyAPI.QueryDeviceMessages failed")
- return jsonerror.InternalServerError()
+ return spec.InternalServerError()
}
sigReq := &api.QuerySignaturesRequest{
@@ -51,9 +50,7 @@ func GetUserDevices(
for _, dev := range res.Devices {
sigReq.TargetIDs[userID] = append(sigReq.TargetIDs[userID], gomatrixserverlib.KeyID(dev.DeviceID))
}
- if err := keyAPI.QuerySignatures(req.Context(), sigReq, sigRes); err != nil {
- return jsonerror.InternalAPIError(req.Context(), err)
- }
+ keyAPI.QuerySignatures(req.Context(), sigReq, sigRes)
response := fclient.RespUserDevices{
UserID: userID,