Don't try to reject outliers based on state we don't know yet

This commit is contained in:
Neil Alexander 2022-08-18 16:11:30 +01:00
parent 8b15b61102
commit fed1c19b0e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -301,7 +301,7 @@ func (r *Inputer) processRoomEvent(
// bother doing this if the event was already rejected as it just ends up
// burning CPU time.
historyVisibility := gomatrixserverlib.HistoryVisibilityShared // Default to shared.
if rejectionErr == nil && !isRejected && !softfail {
if input.Kind != api.KindOutlier && rejectionErr == nil && !isRejected && !softfail {
var err error
historyVisibility, rejectionErr, err = r.processStateBefore(ctx, input, missingPrev)
if err != nil {