Skip to content

Commit

Permalink
fix(rtc): add :remove case for update-remote-data-by-local-unpushed-ops
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed Dec 13, 2024
1 parent 991e391 commit 88bc15d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/frontend/worker/rtc/remote_update.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@
remote-op)]
(assoc affected-blocks-map block-uuid remote-op*))
affected-blocks-map))
:remove
;; TODO: if this block's updated by others, we shouldn't remove it
;; but now, we don't know who updated this block recv from remote
;; once we have this attr(:block/updated-by, :block/created-by), we can finish this TODO
(let [block-uuid (:block-uuid local-op-value)]
(dissoc affected-blocks-map block-uuid))

;;else
affected-blocks-map)))
affected-blocks-map local-unpushed-ops))
Expand Down

0 comments on commit 88bc15d

Please sign in to comment.