Dont set a chat-id on discovery-filters

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2019-02-04 13:52:40 +01:00
parent 49035af201
commit 3469a3d899
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@
{:options (cond-> (assoc params :topics [topic])
minPow
(assoc :minPow minPow))
:callback (or callback (partial receive-message chat-id))
;; We don't pass a chat id on discovery-filters as we might receive
;; messages for multiple chats
:callback (or callback (partial receive-message nil))
:chat-id chat-id}) topics)))))
(fx/defn add-filter