mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 19:23:49 -05:00
Use thread id for comment id
This commit is contained in:
parent
0705242a55
commit
dc976fd9e9
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