summaryrefslogtreecommitdiff
path: root/src/Contact.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2020-12-29 21:39:19 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2020-12-30 21:47:58 +0100
commitcc132e005f974577c2ff782add7df8247c4eb541 (patch)
tree8fde890ef80e33fc1b4b81d4176d642157a29a12 /src/Contact.hs
parentb2d1f57098ae12a22fe7511eb765c39158600d17 (diff)
Discovery service
Diffstat (limited to 'src/Contact.hs')
-rw-r--r--src/Contact.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Contact.hs b/src/Contact.hs
index fefcd1f..5c4e265 100644
--- a/src/Contact.hs
+++ b/src/Contact.hs
@@ -87,19 +87,19 @@ instance PairingResult ContactAccepted where
pairingServiceID _ = mkServiceID "d9c37368-0da1-4280-93e9-d9bd9a198084"
pairingHookRequest = do
- peer <- asks $ svcPeer
+ peer <- asks $ svcPeerIdentity
svcPrint $ "Contact pairing from " ++ T.unpack (displayIdentity peer) ++ " initiated"
pairingHookResponse confirm = do
- peer <- asks $ svcPeer
+ peer <- asks $ svcPeerIdentity
svcPrint $ "Confirm contact " ++ T.unpack (displayIdentity $ finalOwner peer) ++ ": " ++ confirm
pairingHookRequestNonce confirm = do
- peer <- asks $ svcPeer
+ peer <- asks $ svcPeerIdentity
svcPrint $ "Contact request from " ++ T.unpack (displayIdentity $ finalOwner peer) ++ ": " ++ confirm
pairingHookRequestNonceFailed = do
- peer <- asks $ svcPeer
+ peer <- asks $ svcPeerIdentity
svcPrint $ "Failed contact request from " ++ T.unpack (displayIdentity peer)
pairingHookConfirm ContactAccepted = do