aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/sendtodevice.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/sendtodevice.go')
-rw-r--r--clientapi/routing/sendtodevice.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/routing/sendtodevice.go b/clientapi/routing/sendtodevice.go
index 0c022793..6d4af072 100644
--- a/clientapi/routing/sendtodevice.go
+++ b/clientapi/routing/sendtodevice.go
@@ -19,10 +19,10 @@ import (
"github.com/matrix-org/util"
"github.com/matrix-org/dendrite/clientapi/httputil"
- "github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/clientapi/producers"
"github.com/matrix-org/dendrite/internal/transactions"
userapi "github.com/matrix-org/dendrite/userapi/api"
+ "github.com/matrix-org/gomatrixserverlib/spec"
)
// SendToDevice handles PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId}
@@ -53,7 +53,7 @@ func SendToDevice(
req.Context(), device.UserID, userID, deviceID, eventType, message,
); err != nil {
util.GetLogger(req.Context()).WithError(err).Error("eduProducer.SendToDevice failed")
- return jsonerror.InternalServerError()
+ return spec.InternalServerError()
}
}
}