temporary fix for contacts signal

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2020-03-04 17:36:08 +01:00
parent de53581ef4
commit 9b1150df29
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,10 @@
(seq contacts) (seq contacts)
(let [contact (.pop contacts)] (let [contact (.pop contacts)]
(fx/merge cofx (fx/merge cofx
{:utils/dispatch-later [{:ms 20 :dispatch [::process response-js]}]} ;;TODO temporary fix for release, we have and issue with contacts updates , UI is really slow
;;we need to inspect all subsctiptions and views, but for now to temporary make it better
;; we use dispatch instead dispatch-later
{:dispatch [::process response-js]}
(handle-contact (-> contact (types/js->clj) (data-store.contacts/<-rpc))))) (handle-contact (-> contact (types/js->clj) (data-store.contacts/<-rpc)))))
(seq chats) (seq chats)