aboutsummaryrefslogtreecommitdiff
path: root/clientapi/routing/sendevent.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/routing/sendevent.go')
-rw-r--r--clientapi/routing/sendevent.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/clientapi/routing/sendevent.go b/clientapi/routing/sendevent.go
index 0342404d..71dc6c40 100644
--- a/clientapi/routing/sendevent.go
+++ b/clientapi/routing/sendevent.go
@@ -34,6 +34,7 @@ import (
"github.com/matrix-org/dendrite/internal/eventutil"
"github.com/matrix-org/dendrite/internal/transactions"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/dendrite/setup/config"
userapi "github.com/matrix-org/dendrite/userapi/api"
)
@@ -183,8 +184,8 @@ func SendEvent(
if err := api.SendEvents(
req.Context(), rsAPI,
api.KindNew,
- []*gomatrixserverlib.HeaderedEvent{
- e.Headered(roomVersion),
+ []*types.HeaderedEvent{
+ &types.HeaderedEvent{Event: e},
},
device.UserDomain(),
domain,