Tweak condition

This commit is contained in:
Neil Alexander 2022-08-16 17:34:20 +01:00
parent 50518dc058
commit 605d57a24f
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -114,8 +114,7 @@ func (r *Inputer) processRoomEvent(
wasRejected, werr := r.DB.IsEventRejected(ctx, event.EventID()) wasRejected, werr := r.DB.IsEventRejected(ctx, event.EventID())
if werr != nil && werr != sql.ErrNoRows { if werr != nil && werr != sql.ErrNoRows {
return werr return werr
} } else if werr == nil && !wasRejected {
if !wasRejected {
logger.Debugf("Already processed event %q, ignoring", event.EventID()) logger.Debugf("Already processed event %q, ignoring", event.EventID())
return nil return nil
} }