[fix] query-chat-contacts subscription params

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2018-11-19 15:28:42 +01:00
parent cf15789e2a
commit b119facb2a
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
:query-current-chat-contacts :query-current-chat-contacts
:<- [:get-current-chat] :<- [:get-current-chat]
:<- [:get-contacts] :<- [:get-contacts]
(fn [[chat contacts [_ query-fn]]] (fn [[chat contacts] [_ query-fn]]
(contact.db/query-chat-contacts chat contacts query-fn))) (contact.db/query-chat-contacts chat contacts query-fn)))
(re-frame/reg-sub (re-frame/reg-sub
@ -116,7 +116,7 @@
(fn [[_ _ chat-id] _] (fn [[_ _ chat-id] _]
[(re-frame/subscribe [:get-chat chat-id]) [(re-frame/subscribe [:get-chat chat-id])
(re-frame/subscribe [:get-contacts])]) (re-frame/subscribe [:get-contacts])])
(fn [[chat all-contacts [_ query-fn]]] (fn [[chat all-contacts] [_ query-fn]]
(contact.db/query-chat-contacts chat all-contacts query-fn))) (contact.db/query-chat-contacts chat all-contacts query-fn)))
(re-frame/reg-sub (re-frame/reg-sub