diff --git a/backend/src/app/rpc/commands/comments.clj b/backend/src/app/rpc/commands/comments.clj index 576f6599c..0e4ce7ff6 100644 --- a/backend/src/app/rpc/commands/comments.clj +++ b/backend/src/app/rpc/commands/comments.clj @@ -496,7 +496,8 @@ ;; --- COMMAND: Update comment thread position (s/def ::update-comment-thread-position - (s/keys :req-un [::profile-id ::id ::position ::frame-id ::share-id])) + (s/keys :req-un [::profile-id ::id ::position ::frame-id] + :opt-un [::share-id])) (sv/defmethod ::update-comment-thread-position {::doc/added "1.15"} @@ -514,7 +515,8 @@ ;; --- COMMAND: Update comment frame (s/def ::update-comment-thread-frame - (s/keys :req-un [::profile-id ::id ::frame-id ::share-id])) + (s/keys :req-un [::profile-id ::id ::frame-id] + :opt-un [::share-id])) (sv/defmethod ::update-comment-thread-frame {::doc/added "1.15"} 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