annotation: make sure parent-child relation is established
problem: some times we order comments before parent-child relation is established, this caused reply count not being updated correctly for other users steps to reproduce: User A open ODT, let us say already with comment or add one, and keep Sidebar open so that comments are short. user B opens the same ODT with full comments. adds reply User A does not update ticket number, does not have +1 Signed-off-by: Pranam Lashkari <lpranam@collabora.com> Change-Id: If3360c8dd938c6bd177764d3c1383d7f3f845990
This commit is contained in:
parent
d73d716dea
commit
ab064bacc7
1 changed files with 1 additions and 1 deletions
|
@ -1043,6 +1043,7 @@ export class CommentSection extends CanvasSectionObject {
|
|||
|
||||
this.sectionProperties.commentList.push(annotation);
|
||||
|
||||
this.adjustParentAdd(annotation);
|
||||
this.orderCommentList();
|
||||
this.updateIdIndexMap();
|
||||
this.checkSize();
|
||||
|
@ -1176,7 +1177,6 @@ export class CommentSection extends CanvasSectionObject {
|
|||
} else {
|
||||
this.adjustComment(obj.comment);
|
||||
annotation = this.add(obj.comment);
|
||||
this.adjustParentAdd(annotation);
|
||||
if (this.sectionProperties.docLayer._docType === 'spreadsheet')
|
||||
annotation.hide();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue