diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index c333f8874..b31a77e6d 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -22,6 +22,7 @@ [app.common.types.shape :as cts] [app.common.uuid :as uuid] [app.config :as cfg] + [app.main.data.comments :as dcm] [app.main.data.events :as ev] [app.main.data.messages :as msg] [app.main.data.users :as du] @@ -113,7 +114,8 @@ ptk/WatchEvent (watch [_ _ stream] (rx/merge - (rx/of (dwp/fetch-bundle project-id file-id)) + (rx/of (dwp/fetch-bundle project-id file-id) + (dcm/retrieve-comment-threads file-id)) ;; Initialize notifications (websocket connection) and the file persistence (->> stream diff --git a/frontend/src/app/main/ui/workspace.cljs b/frontend/src/app/main/ui/workspace.cljs index 808ee67f0..17b1fce61 100644 --- a/frontend/src/app/main/ui/workspace.cljs +++ b/frontend/src/app/main/ui/workspace.cljs @@ -8,7 +8,6 @@ (:require [app.common.colors :as clr] [app.common.data.macros :as dm] - [app.main.data.comments :as dcm] [app.main.data.messages :as msg] [app.main.data.workspace :as dw] [app.main.data.workspace.persistence :as dwp] @@ -128,7 +127,6 @@ (mf/with-effect [project-id file-id] (st/emit! (dw/initialize-file project-id file-id)) - (st/emit! (dcm/retrieve-comment-threads file-id)) (fn [] (st/emit! ::dwp/force-persist (dw/finalize-file project-id file-id))))