Merge pull request #1788 from penpot/hirunatan-fix-multi-user

Hirunatan fix multi user
This commit is contained in:
Andrey Antukh 2022-04-06 09:20:27 +02:00 committed by GitHub
commit e62f0603b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -55,8 +55,8 @@
(->> stream
(rx/filter (ptk/type? ::dws/message))
(rx/map deref)
(rx/map process-message)
(rx/filter #(= subs-id (:subs-id %))))
(rx/filter #(= subs-id (:subs-id %)))
(rx/map process-message))
;; On reconnect, send again the subscription messages
(->> stream
@ -158,9 +158,7 @@
(update-presence [presence]
(-> presence
(update session-id update-session presence)
(d/without-nils)))
]
(d/without-nils)))]
(ptk/reify ::handle-presence
ptk/UpdateEvent