summaryrefslogtreecommitdiff
path: root/main/Test.hs
diff options
context:
space:
mode:
Diffstat (limited to 'main/Test.hs')
-rw-r--r--main/Test.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/Test.hs b/main/Test.hs
index a3b91c2..7fdf5fc 100644
--- a/main/Test.hs
+++ b/main/Test.hs
@@ -235,9 +235,9 @@ discoveryAttributes = (defaultServiceAttributes Proxy)
inviteAttributes :: Output -> InviteServiceAttributes
inviteAttributes out = (defaultServiceAttributes Proxy)
- { inviteHookAccepted = \token -> do
+ { inviteHookAccepted = \Invite {..} -> do
pid <- asks svcPeerIdentity
- afterCommit $ outLine out $ "invite-accepted " <> showInviteToken token <> " " <> (BC.unpack $ showRef $ storedRef $ idExtData pid)
+ afterCommit $ outLine out $ "invite-accepted " <> maybe "<missing-token>" showInviteToken inviteToken <> " " <> (BC.unpack $ showRef $ storedRef $ idExtData pid)
, inviteHookReplyContact = \token _ -> do
afterCommit $ outLine out $ "invite-accept-done " <> showInviteToken token <> " contact"
, inviteHookReplyInvalid = \token -> do