mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 19:48:22 -05:00
🐛 Fix notifications of external library changes
https://tree.taiga.io/project/penpot/issue/3348
This commit is contained in:
parent
8fb22b8eee
commit
b86ea5b5e2
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@
|
||||||
;; Subscribe to notifications of the subscription
|
;; Subscribe to notifications of the subscription
|
||||||
(->> stream
|
(->> stream
|
||||||
(rx/filter (ptk/type? ::dws/message))
|
(rx/filter (ptk/type? ::dws/message))
|
||||||
(rx/map deref)
|
(rx/map deref) ;; :library-change events occur in a different file, but need to be processed anyway
|
||||||
(rx/filter #(= subs-id (:subs-id %)))
|
(rx/filter #(or (= subs-id (:subs-id %)) (= (:type %) :library-change)))
|
||||||
(rx/map process-message))
|
(rx/map process-message))
|
||||||
|
|
||||||
;; On reconnect, send again the subscription messages
|
;; On reconnect, send again the subscription messages
|
||||||
|
|
Loading…
Add table
Reference in a new issue