Skip to content

Commit f940f70

Browse files
committed
fix: rtc should never retract block timestamp
1 parent 8c10cb6 commit f940f70

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/frontend/worker/rtc/remote_update.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@
408408
(ldb/read-transit-str remote-v))]
409409
(when (not= local-v remote-v*)
410410
(if (nil? remote-v*)
411-
[[:db/retract e k]]
411+
(when-not (contains? #{:block/created-at :block/updated-at} k)
412+
[[:db/retract e k]])
412413
[[:db/add e k remote-v*]])))
413414

414415
[false true]

0 commit comments

Comments
 (0)