mirror of
https://github.com/penpot/penpot.git
synced 2026-03-01 15:53:53 +00:00
🐛 Fix notifications of external library changes
https://tree.taiga.io/project/penpot/issue/3348
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user