diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-05-28 23:01:09 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-05-28 23:01:09 +0000 |
commit | 8980cc601aad0851e7a3f0ddcf55f1ad3fe6963d (patch) | |
tree | 5d52343aa750190d9996c1be1977c4083c866db9 /src/Network/Tox.hs | |
parent | 44bd81d013eea9dd087a8fbfc92694c33f634d0e (diff) |
remove old dubious TODO comment
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 61f0bab0..69975c0a 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -265,14 +265,11 @@ netCrypto tox myseckey theirpubkey = do | |||
265 | Nothing -> do | 265 | Nothing -> do |
266 | hPutStrLn stderr ("netCrypto: (" ++ show mykeyAsId ++") friend not found (" ++ show theirkeyAsId ++ ").") | 266 | hPutStrLn stderr ("netCrypto: (" ++ show mykeyAsId ++") friend not found (" ++ show theirkeyAsId ++ ").") |
267 | return [] | 267 | return [] |
268 | Just contact -> do | 268 | Just contact@(Contact { contactKeyPacket = mbKeyPkt |
269 | -- TODO | 269 | , contactLastSeenAddr = mbSAddr |
270 | -- convert public key to NodeInfo check ContactInfo | 270 | , contactFriendRequest = mbFR |
271 | -- | 271 | , contactPolicy = mbPolicy |
272 | -- > case nodeInfo (key2id theirpubkey) saddr of | 272 | }) -> do |
273 | -- > Left -> fail... | ||
274 | -- > Right ni -> | ||
275 | -- | ||
276 | sessionsMap <- atomically $ readTVar (netCryptoSessionsByKey (toxCryptoSessions tox) ) | 273 | sessionsMap <- atomically $ readTVar (netCryptoSessionsByKey (toxCryptoSessions tox) ) |
277 | let sessionUsesIdentity key session = key == ncMyPublicKey session | 274 | let sessionUsesIdentity key session = key == ncMyPublicKey session |
278 | case Map.lookup theirpubkey sessionsMap of | 275 | case Map.lookup theirpubkey sessionsMap of |