mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Reapply ops to track changes as current user when reconnecting
This commit is contained in:
parent
eb8e801dea
commit
4a47d135c7
1 changed files with 2 additions and 2 deletions
|
@ -360,8 +360,8 @@ define [
|
||||||
@ranges.track_changes = @doc.track_changes
|
@ranges.track_changes = @doc.track_changes
|
||||||
for op in @doc.getInflightOp() or []
|
for op in @doc.getInflightOp() or []
|
||||||
@ranges.setIdSeed(@doc.track_changes_id_seeds.inflight)
|
@ranges.setIdSeed(@doc.track_changes_id_seeds.inflight)
|
||||||
@ranges.applyOp(op)
|
@ranges.applyOp(op, { user_id: @track_changes_as })
|
||||||
for op in @doc.getPendingOp() or []
|
for op in @doc.getPendingOp() or []
|
||||||
@ranges.setIdSeed(@doc.track_changes_id_seeds.pending)
|
@ranges.setIdSeed(@doc.track_changes_id_seeds.pending)
|
||||||
@ranges.applyOp(op)
|
@ranges.applyOp(op, { user_id: @track_changes_as })
|
||||||
@ranges.emit "redraw"
|
@ranges.emit "redraw"
|
||||||
|
|
Loading…
Reference in a new issue