Tweak check
This commit is contained in:
parent
9437126bd8
commit
b39f38263e
|
@ -211,7 +211,7 @@ func (r *RoomserverInternalAPI) PerformInvite(
|
||||||
sentry.CaptureException(err)
|
sentry.CaptureException(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(outputEvents) == 0 {
|
if res.Error != nil || len(outputEvents) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)
|
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)
|
||||||
|
|
Loading…
Reference in a new issue