🐛 Fix problem with email notifications on deleted comments (#5772)

This commit is contained in:
Alonso Torres 2025-02-05 17:48:41 +01:00 committed by GitHub
parent 508531cfc2
commit 3012ccf90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,12 +207,14 @@
ptk/WatchEvent
(watch [_ state _]
(rx/concat
(rx/of
(rt/nav :workspace
(-> (rt/get-params state)
(assoc :page-id (:page-id thread))
(dissoc :comment-id))
{::rt/replace true}))
(if (some? thread)
(rx/of
(rt/nav :workspace
(-> (rt/get-params state)
(assoc :page-id (:page-id thread))
(dissoc :comment-id))
{::rt/replace true}))
(rx/empty))
(->> (rx/of
(dwd/select-for-drawing :comments)
(center-to-comment-thread thread)