0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 20:11:29 -05:00

🐛 Fix user unread comments appear in every workspace (#5786)

This commit is contained in:
luisδμ 2025-02-06 14:24:30 +01:00 committed by GitHub
parent 518ba0ebe7
commit 00b0a59868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,6 +404,10 @@
(defn retrieve-comment-threads
[file-id]
(ptk/reify ::retrieve-comment-threads
ptk/UpdateEvent
(update [_ state]
(dissoc state :comment-threads))
ptk/WatchEvent
(watch [_ state _]
(let [share-id (-> state :viewer-local :share-id)]