Tweak check

This commit is contained in:
Neil Alexander 2022-10-05 16:53:16 +01:00
parent 9437126bd8
commit b39f38263e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -211,7 +211,7 @@ func (r *RoomserverInternalAPI) PerformInvite(
sentry.CaptureException(err)
return err
}
if len(outputEvents) == 0 {
if res.Error != nil || len(outputEvents) == 0 {
return nil
}
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)