mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
Merge pull request #2188 from penpot/superalex-fix-permissions-when-moving-comments
🐛 Fix permissions when moving comments
This commit is contained in:
commit
02efffceb4
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue