mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 09:43:10 -06:00
Don't send invite pokes in PerformInvite
This commit is contained in:
parent
b233d01749
commit
7822a3e9fc
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue