From 89f012de3884c56ed48932091ebe9c5d5a291d27 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 30 May 2018 21:28:13 -0400 Subject: TODO comment. --- ToxToXMPP.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ToxToXMPP.hs b/ToxToXMPP.hs index 26cfa58c..e1ddf6b5 100644 --- a/ToxToXMPP.hs +++ b/ToxToXMPP.hs @@ -63,6 +63,11 @@ dispatch acnt st (OnionRouted theirkey (OnionFriendRequest fr) ) = do k2c <- Map.filterWithKey (\k _ -> k `Set.member` refs) <$> readTVar (keyToChan st) clients <- readTVar (clients st) return $ Map.intersectionWith (,) k2c clients + -- TODO: Below we're using our nospam (that they used in their friend + -- request to us) as their jabber user id. This isn't the right thing, but + -- we don't know their user-id. Perhaps there should be a way to parse it + -- out of the friend request text. Maybe after a zero-termination, or as + -- visible text (nospam:...). let theirjid = key2jid (friendNoSpam fr) theirkey forM_ k2c $ \(conn,client) -> do self <- localJID (clientUser client) (clientProfile client) (clientResource client) -- cgit v1.2.3