S2S: Project: Accept: Add-child-passive: Fix bug, no need to record the Accept in the Source

This commit is contained in:
Pere Lev 2024-04-27 12:25:13 +03:00
parent bb1685f695
commit c2da1da9f4
No known key found for this signature in database
GPG key ID: 5252C5C863E5E57D

View file

@ -881,12 +881,14 @@ projectAccept now projectID (Verse authorIdMsig body) accept = do
-- Record my collaborator's Accept -- Record my collaborator's Accept
-- Prepare to send delegator-Grant -- Prepare to send delegator-Grant
Right () -> Just <$> do Right () -> Just <$> do
{-
case (topic, acceptDB) of case (topic, acceptDB) of
(Left (localID, _), Left (_, _, acceptID)) -> (Left (localID, _), Left (_, _, acceptID)) ->
insert_ $ SourceThemAcceptLocal localID acceptID insert_ $ ? localID acceptID
(Right (remoteID, _), Right (_, _, acceptID)) -> (Right (remoteID, _), Right (_, _, acceptID)) ->
insert_ $ SourceThemAcceptRemote remoteID acceptID insert_ $ ? remoteID acceptID
_ -> error "projectAccept impossible iv" _ -> error "projectAccept impossible iv"
-}
grantID <- insertEmptyOutboxItem' (actorOutbox recipActor) now grantID <- insertEmptyOutboxItem' (actorOutbox recipActor) now
insert_ $ SourceUsSendDelegator sourceID grantID insert_ $ SourceUsSendDelegator sourceID grantID
return (topic, grantID) return (topic, grantID)