diff --git a/roomserver/state/state.go b/roomserver/state/state.go index f5893555a..7f2c0bd68 100644 --- a/roomserver/state/state.go +++ b/roomserver/state/state.go @@ -884,7 +884,7 @@ func (v *StateResolution) resolveConflictsV2( for _, resolvedEvent := range resolvedEvents { entry, ok := eventIDMap[resolvedEvent.EventID()] if !ok { - panic(fmt.Errorf("missing state entry for event ID %q", resolvedEvent.EventID())) + return nil, fmt.Errorf("missing state entry for event ID %q", resolvedEvent.EventID()) } notConflicted = append(notConflicted, entry) }