Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Alejandro Alonso 2025-03-17 12:52:56 +01:00
commit dba67eea91
2 changed files with 7 additions and 3 deletions

View file

@ -8,6 +8,7 @@
(:require-macros [app.main.style :as stl])
(:require
[app.main.data.comments :as dcmt]
[app.main.data.event :as ev]
[app.main.data.workspace :as dw]
[app.main.data.workspace.comments :as dwcm]
[app.main.refs :as refs]
@ -112,9 +113,11 @@
on-thread-click
(mf/use-fn
(mf/deps page-id)
(mf/deps page-id from-viewer)
(fn [thread]
(st/emit! (dwcm/navigate-to-comment thread))))]
(if from-viewer
(st/emit! (with-meta (dcmt/open-thread thread) {::ev/origin "viewer"}))
(st/emit! (dwcm/navigate-to-comment thread)))))]
[:div {:class (stl/css-case :comments-section true
:from-viewer from-viewer)}