diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 987b3cc42..85189e476 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -297,8 +297,8 @@ func (r *Inputer) processRoomEvent( "soft_fail": softfail, "missing_prev": missingPrev, }).Warn("Stored rejected event") - if err != nil { - return commitTransaction, types.RejectedError(err.Error()) + if rejectionErr != nil { + return commitTransaction, types.RejectedError(rejectionErr.Error()) } return commitTransaction, nil }