From 7822a3e9fc5dbfce29b2f3c2c67ac07b061dffea Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 2 Feb 2022 13:03:23 +0000 Subject: [PATCH] Don't send invite pokes in PerformInvite --- roomserver/internal/perform/perform_invite.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/roomserver/internal/perform/perform_invite.go b/roomserver/internal/perform/perform_invite.go index 157a0c8b8..d064595e9 100644 --- a/roomserver/internal/perform/perform_invite.go +++ b/roomserver/internal/perform/perform_invite.go @@ -222,17 +222,9 @@ func (r *Inviter) PerformInvite( return nil, nil } - // Notify the sync api of this event in the same way as a federated invite so the invitee - // gets the invite. - return []api.OutputEvent{ - { - Type: api.OutputTypeNewInviteEvent, - NewInviteEvent: &api.OutputNewInviteEvent{ - Event: event.Headered(req.RoomVersion), - RoomVersion: req.RoomVersion, - }, - }, - }, nil + // Don't notify the sync api of this event in the same way as a federated invite so the invitee + // gets the invite, as the roomserver will do this when it processes the m.room.member invite. + return nil, nil } func buildInviteStrippedState(