Use thread id for comment id

This commit is contained in:
James Allen 2017-01-23 09:45:46 +01:00
parent 0705242a55
commit dc976fd9e9

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