Use thread id for comment id

This commit is contained in:
James Allen 2017-01-23 09:45:37 +01:00
parent 93bb7ee680
commit 2813b16ebf

View file

@ -107,7 +107,7 @@ load = (EventEmitter) ->
addComment: (op, metadata) ->
# TODO: Don't allow overlapping comments?
@comments.push comment = {
id: @newId()
id: op.t or @newId()
op: # Copy because we'll modify in place
c: op.c
p: op.p