Răsfoiți Sursa

Use thread id for comment id

James Allen 9 ani în urmă
părinte
comite
dc976fd9e9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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) ->
 		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