Don't waste time if soft failed either

This commit is contained in:
Neil Alexander 2022-06-13 11:38:00 +01:00
parent 6d04ae10e4
commit a6cc650e9f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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 {