aboutsummaryrefslogtreecommitdiff
path: root/clientapi/threepid/invites.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-11-16 15:44:53 +0000
committerGitHub <noreply@github.com>2020-11-16 15:44:53 +0000
commit20a01bceb2869c810932eac217d96dc221953685 (patch)
tree639cd8656282ae231a46531f063d7d010320a582 /clientapi/threepid/invites.go
parentd8b526b603683879c012972707cdce44fff3c802 (diff)
Pass pointers to events — reloaded (#1583)
* Pass events as pointers * Fix lint errors * Update gomatrixserverlib * Update gomatrixserverlib * Update to matrix-org/gomatrixserverlib#240
Diffstat (limited to 'clientapi/threepid/invites.go')
-rw-r--r--clientapi/threepid/invites.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/threepid/invites.go b/clientapi/threepid/invites.go
index 272d3407..f49796fd 100644
--- a/clientapi/threepid/invites.go
+++ b/clientapi/threepid/invites.go
@@ -362,8 +362,8 @@ func emit3PIDInviteEvent(
return api.SendEvents(
ctx, rsAPI,
api.KindNew,
- []gomatrixserverlib.HeaderedEvent{
- (*event).Headered(queryRes.RoomVersion),
+ []*gomatrixserverlib.HeaderedEvent{
+ event.Headered(queryRes.RoomVersion),
},
cfg.Matrix.ServerName,
nil,