@@ -662,11 +662,9 @@ handlePoll = \cursor authorization clientIp -> do
662662 case setup of
663663 Nothing {} -> yield (Err {error: {status: 401, message: "unauthorized"}})
664664 Just {value: s} -> do
665− when federationEnabled (fork (sendBatchedGossip s.refreshPeers [
666− GossipOnline {s.pubkey}
667− ]))
665+ when federationEnabled (fork (sendBatchedGossip s.refreshPeers [GossipOnline {s.pubkey}]))
668666 pollResult <- doPoll s t
669− yield (Ok {value: {pollResult.events, pollResult.cursor}})
667+ yield (Ok {value: pollResult})
670668
671669-- One pass: collect this pubkey's unexpired messages newer than the cursor,
672670-- sort by receivedAt, take up to `maxPollEvents`. The returned cursor is the