From b39f38263e2313844828590a43f5c448e5925f33 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 5 Oct 2022 16:53:16 +0100 Subject: [PATCH] Tweak check --- roomserver/internal/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/api.go b/roomserver/internal/api.go index 5872b5bd3..3c7d5da92 100644 --- a/roomserver/internal/api.go +++ b/roomserver/internal/api.go @@ -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)