S2S: Group: Accept: Fix bug, collab approval wasn't working

This commit is contained in:
Pere Lev 2024-03-13 15:35:50 +02:00
parent 1d13d7a551
commit f187c66d69
No known key found for this signature in database
GPG key ID: 5252C5C863E5E57D

View file

@ -200,7 +200,7 @@ groupAccept now groupID (Verse authorIdMsig body) accept = do
case (collab, acceptDB) of
(Left (fulfillsID, Left recipID), Left (_, _, acceptID)) -> do
maybeAccept <- lift $ insertUnique $ CollabRecipLocalAccept recipID fulfillsID acceptID
unless (isNothing maybeAccept) $
unless (isJust maybeAccept) $
throwE "This Invite already has an Accept by recip"
(Left (fulfillsID, Right recipID), Right (_, _, acceptID)) -> do
maybeAccept <- lift $ insertUnique $ CollabRecipRemoteAccept recipID fulfillsID acceptID