mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 23:36:11 +02:00
🐛 Fix multiplayer username sometimes is not displayed correctly
This commit is contained in:
parent
b5fc074e35
commit
3b2083134e
2 changed files with 9 additions and 4 deletions
|
@ -44,6 +44,7 @@
|
||||||
- Fix path options not showing when editing rects or ellipses [Taiga #5053](https://tree.taiga.io/project/penpot/issue/5053)
|
- Fix path options not showing when editing rects or ellipses [Taiga #5053](https://tree.taiga.io/project/penpot/issue/5053)
|
||||||
- Fix tooltips for some alignment options are truncated on design tab [Taiga #5040](https://tree.taiga.io/project/penpot/issue/5040)
|
- Fix tooltips for some alignment options are truncated on design tab [Taiga #5040](https://tree.taiga.io/project/penpot/issue/5040)
|
||||||
- Fix horizontal margins drag don't always start from place [Taiga #5020](https://tree.taiga.io/project/penpot/issue/5020)
|
- Fix horizontal margins drag don't always start from place [Taiga #5020](https://tree.taiga.io/project/penpot/issue/5020)
|
||||||
|
- Fix multiplayer username sometimes is not displayed correctly [Taiga #4400](https://tree.taiga.io/project/penpot/issue/4400)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -279,15 +279,19 @@
|
||||||
(->
|
(->
|
||||||
(assoc-in (conj path :position) (:position comment-thread))
|
(assoc-in (conj path :position) (:position comment-thread))
|
||||||
(assoc-in (conj path :frame-id) (:frame-id comment-thread))))))
|
(assoc-in (conj path :frame-id) (:frame-id comment-thread))))))
|
||||||
(fetched [data state]
|
(fetched [[users comments] state]
|
||||||
(let [state (assoc state :comment-threads (d/index-by :id data))]
|
(let [state (-> state
|
||||||
(reduce set-comment-threds state data)))]
|
(assoc :comment-threads (d/index-by :id comments))
|
||||||
|
(assoc :current-file-comments-users (d/index-by :id users)))]
|
||||||
|
(reduce set-comment-threds state comments)))]
|
||||||
|
|
||||||
(ptk/reify ::retrieve-comment-threads
|
(ptk/reify ::retrieve-comment-threads
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(let [share-id (-> state :viewer-local :share-id)]
|
(let [share-id (-> state :viewer-local :share-id)]
|
||||||
(->> (rp/cmd! :get-comment-threads {:file-id file-id :share-id share-id})
|
(->> (rx/zip (rp/cmd! :get-team-users {:file-id file-id})
|
||||||
|
(rp/cmd! :get-comment-threads {:file-id file-id :share-id share-id}))
|
||||||
|
(rx/take 1)
|
||||||
(rx/map #(partial fetched %))
|
(rx/map #(partial fetched %))
|
||||||
(rx/catch #(rx/throw {:type :comment-error}))))))))
|
(rx/catch #(rx/throw {:type :comment-error}))))))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue