aboutsummaryrefslogtreecommitdiff
path: root/clientapi/threepid/invites.go
diff options
context:
space:
mode:
Diffstat (limited to 'clientapi/threepid/invites.go')
-rw-r--r--clientapi/threepid/invites.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/clientapi/threepid/invites.go b/clientapi/threepid/invites.go
index 2ffb6bb0..b9575a28 100644
--- a/clientapi/threepid/invites.go
+++ b/clientapi/threepid/invites.go
@@ -359,7 +359,7 @@ func emit3PIDInviteEvent(
return err
}
- _, err = api.SendEvents(
+ return api.SendEvents(
ctx, rsAPI,
[]gomatrixserverlib.HeaderedEvent{
(*event).Headered(queryRes.RoomVersion),
@@ -367,5 +367,4 @@ func emit3PIDInviteEvent(
cfg.Matrix.ServerName,
nil,
)
- return err
}