mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use thread id for comment id
This commit is contained in:
parent
93bb7ee680
commit
2813b16ebf
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ load = (EventEmitter) ->
|
||||||
addComment: (op, metadata) ->
|
addComment: (op, metadata) ->
|
||||||
# TODO: Don't allow overlapping comments?
|
# TODO: Don't allow overlapping comments?
|
||||||
@comments.push comment = {
|
@comments.push comment = {
|
||||||
id: @newId()
|
id: op.t or @newId()
|
||||||
op: # Copy because we'll modify in place
|
op: # Copy because we'll modify in place
|
||||||
c: op.c
|
c: op.c
|
||||||
p: op.p
|
p: op.p
|
||||||
|
|
Loading…
Reference in a new issue