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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/federationapi/routing/invite.go b/federationapi/routing/invite.go
index 16c0441b..54f9e684 100644
--- a/federationapi/routing/invite.go
+++ b/federationapi/routing/invite.go
@@ -97,7 +97,7 @@ func InviteV1(
func processInvite(
ctx context.Context,
isInviteV2 bool,
- event gomatrixserverlib.Event,
+ event *gomatrixserverlib.Event,
roomVer gomatrixserverlib.RoomVersion,
strippedState []gomatrixserverlib.InviteV2StrippedState,
roomID string,
@@ -171,12 +171,12 @@ func processInvite(
if isInviteV2 {
return util.JSONResponse{
Code: http.StatusOK,
- JSON: gomatrixserverlib.RespInviteV2{Event: signedEvent},
+ JSON: gomatrixserverlib.RespInviteV2{Event: &signedEvent},
}
} else {
return util.JSONResponse{
Code: http.StatusOK,
- JSON: gomatrixserverlib.RespInvite{Event: signedEvent},
+ JSON: gomatrixserverlib.RespInvite{Event: &signedEvent},
}
}
default: