🐛 Fix multi user not working

This commit is contained in:
Andrés Moya 2022-04-06 09:16:22 +02:00
parent 39fa939f58
commit 654e12a2c3
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