summaryrefslogtreecommitdiff
path: root/src/Erebos
diff options
context:
space:
mode:
Diffstat (limited to 'src/Erebos')
-rw-r--r--src/Erebos/Invite.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Erebos/Invite.hs b/src/Erebos/Invite.hs
index faeb646..89670ec 100644
--- a/src/Erebos/Invite.hs
+++ b/src/Erebos/Invite.hs
@@ -188,13 +188,13 @@ instance Service InviteService where
serviceHandler = fromStored >>> \case
AcceptInvite token -> do
- asks (inviteHookAccepted . svcAttributes) >>= ($ token)
invites <- fromSetBy (comparing inviteToken) . lookupSharedValue . lsShared . fromStored <$> getLocalHead
case find ((Just token ==) . inviteToken) invites of
Just invite
| Just name <- inviteContact invite
, [] <- inviteAccepted invite
-> do
+ asks (inviteHookAccepted . svcAttributes) >>= ($ token)
identity <- asks svcPeerIdentity
cdata <- mstore ContactData
{ cdPrev = []