mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-05 21:23:10 -06:00
Don't waste time if soft failed either
This commit is contained in:
parent
6d04ae10e4
commit
a6cc650e9f
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue