From 24df85b4282c3a320417bc7651ed1a1400c86b36 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 4 Mar 2022 15:27:10 +0000 Subject: [PATCH] Mark soft-failed events as rejected in `roomserver_events` (#2252) --- roomserver/internal/input/input_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 531d6959e..1acbf0443 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -294,7 +294,7 @@ func (r *Inputer) processRoomEvent( } // Store the event. - _, _, stateAtEvent, redactionEvent, redactedEventID, err := r.DB.StoreEvent(ctx, event, authEventNIDs, isRejected) + _, _, stateAtEvent, redactionEvent, redactedEventID, err := r.DB.StoreEvent(ctx, event, authEventNIDs, isRejected || softfail) if err != nil { return fmt.Errorf("updater.StoreEvent: %w", err) }