summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Erebos/Invite.hs2
-rw-r--r--test/invite.et2
2 files changed, 1 insertions, 3 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 = []
diff --git a/test/invite.et b/test/invite.et
index bf1a45a..c7a8054 100644
--- a/test/invite.et
+++ b/test/invite.et
@@ -62,8 +62,6 @@ test InviteContact:
guard (done == "done")
with p1:
- expect /invite-accepted 00 $p2id/
- expect /invite-accepted $token $p2id/
expect /invite-accepted $token $p2id/
send "contact-list"