aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/invite.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/routing/invite.go')
-rw-r--r--federationapi/routing/invite.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go
index 88071892..a4ebeaed 100644
--- a/federationapi/routing/invite.go
+++ b/federationapi/routing/invite.go
@@ -22,6 +22,7 @@ import (
"github.com/matrix-org/dendrite/clientapi/jsonerror"
"github.com/matrix-org/dendrite/roomserver/api"
+ "github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
@@ -196,11 +197,11 @@ func processInvite(
)
// Add the invite event to the roomserver.
- inviteEvent := signedEvent.Headered(roomVer)
+ inviteEvent := &types.HeaderedEvent{Event: &signedEvent}
request := &api.PerformInviteRequest{
Event: inviteEvent,
InviteRoomState: strippedState,
- RoomVersion: inviteEvent.RoomVersion,
+ RoomVersion: inviteEvent.Version(),
SendAsServer: string(api.DoNotSendToOtherServers),
TransactionID: nil,
}