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/ui/workspace.cljs b/frontend/src/app/main/ui/workspace.cljs index 17b1fce61..808ee67f0 100644 --- a/frontend/src/app/main/ui/workspace.cljs +++ b/frontend/src/app/main/ui/workspace.cljs @@ -8,6 +8,7 @@ (: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] @@ -127,6 +128,7 @@ (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))))