mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Prevent aggregation of changes from different users.
This commit is contained in:
parent
b2a7686204
commit
26260fc11f
1 changed files with 6 additions and 1 deletions
|
@ -247,7 +247,12 @@ define [
|
|||
delete delete_changes[change.id]
|
||||
entries[change.id] ?= {}
|
||||
|
||||
if potential_aggregate and change.op.d and change.op.p == prev_insertion.op.p + prev_insertion.op.i.length
|
||||
if (
|
||||
potential_aggregate and
|
||||
change.op.d and
|
||||
change.op.p == prev_insertion.op.p + prev_insertion.op.i.length and
|
||||
change.metadata.user_id == prev_insertion.metadata.user_id
|
||||
)
|
||||
aggregate_entry = true
|
||||
|
||||
new_entry = {
|
||||
|
|
Loading…
Reference in a new issue