core: fix auto-accepting conditions for simplex operator (#5489)

This commit is contained in:
spaced4ndy
2025-01-08 13:31:32 +04:00
committed by GitHub
parent f33a9650bc
commit 8dc29082d5
-1
View File
@@ -628,7 +628,6 @@ getUpdateServerOperators db presetOps newUser = do
DBEntityId _ -> do
updateOperator op
getOperatorConditions_ db op currentConds latestAcceptedConds_ now >>= \case
CARequired Nothing | operatorTag op == Just OTSimplex -> autoAcceptConditions op currentConds now
CARequired (Just ts) | ts < now -> autoAcceptConditions op currentConds now
ca -> pure op {conditionsAcceptance = ca}
where