From 605d57a24f0dd6b674486ef38979bb409d61ae64 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 16 Aug 2022 17:34:20 +0100 Subject: [PATCH] Tweak condition --- roomserver/internal/input/input_events.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index c27a3152f..fb6f91db2 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -114,8 +114,7 @@ func (r *Inputer) processRoomEvent( wasRejected, werr := r.DB.IsEventRejected(ctx, event.EventID()) if werr != nil && werr != sql.ErrNoRows { return werr - } - if !wasRejected { + } else if werr == nil && !wasRejected { logger.Debugf("Already processed event %q, ignoring", event.EventID()) return nil }