From a6cc650e9ff959be9dbefa9bee757b5a85570dda Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 13 Jun 2022 11:38:00 +0100 Subject: [PATCH] Don't waste time if soft failed either --- roomserver/internal/input/input_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index bd25e916b..47558c1a8 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -300,7 +300,7 @@ func (r *Inputer) processRoomEvent( // bother doing this if the event was already rejected as it just ends up // burning CPU time. historyVisibility := "joined" // Default to restrictive. - if rejectionErr == nil { + if rejectionErr == nil && !isRejected && !softfail { var err error historyVisibility, rejectionErr, err = r.processStateBefore(ctx, input, missingPrev) if err != nil {