0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-14 02:58:39 -05:00

🐛 Fix notifications of external library changes

https://tree.taiga.io/project/penpot/issue/3348
This commit is contained in:
Andrés Moya 2022-05-05 12:11:31 +02:00
parent 8fb22b8eee
commit b86ea5b5e2

View file

@ -54,8 +54,8 @@
;; Subscribe to notifications of the subscription
(->> stream
(rx/filter (ptk/type? ::dws/message))
(rx/map deref)
(rx/filter #(= subs-id (:subs-id %)))
(rx/map deref) ;; :library-change events occur in a different file, but need to be processed anyway
(rx/filter #(or (= subs-id (:subs-id %)) (= (:type %) :library-change)))
(rx/map process-message))
;; On reconnect, send again the subscription messages