aboutsummaryrefslogtreecommitdiff
path: root/src/Ssb/Peer/RPC/Room.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ssb/Peer/RPC/Room.hs')
-rw-r--r--src/Ssb/Peer/RPC/Room.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ssb/Peer/RPC/Room.hs b/src/Ssb/Peer/RPC/Room.hs
index 1f53cf0..7be7d2c 100644
--- a/src/Ssb/Peer/RPC/Room.hs
+++ b/src/Ssb/Peer/RPC/Room.hs
@@ -280,7 +280,8 @@ instance RPC.Handler Room where
-- should decode request
serve h (RPC.Endpoint ["tunnel", "connect"] RPC.Duplex) args stream = do
let args' =
- decodeJSON (toS $ Aeson.encode args) :: Either
+ -- TODO: why encode to JSON then decode from JSON redundantly?
+ decodeJSON (encodeJSON args) :: Either
Text
[ConnectRequest]
case args' of