0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-14 07:51:35 -05:00

🐛 Fix permissions when moving comments

This commit is contained in:
Alejandro Alonso 2022-08-24 12:16:54 +02:00
parent 8a33a63f91
commit 44330ffb3b
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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))))