Explorar el Código

Use thread id for comment id

James Allen hace 9 años
padre
commit
dc976fd9e9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/document-updater/app/coffee/RangesTracker.coffee

+ 1 - 1
services/document-updater/app/coffee/RangesTracker.coffee

@@ -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