Unselect comments when collapsing to bubbles

It prevents us from case when bubble is "higlighted"
but we cannot open comment preview.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9524946c82f534264a3f77963efb0a2692283324
This commit is contained in:
Szymon Kłos 2021-11-03 14:27:34 +01:00 committed by Szymon Kłos
parent a2543104ab
commit def82002d8

View file

@ -202,6 +202,7 @@ class CommentSection {
this.isCollapsed = true;
this.removeHighlighters();
this.unselect();
for (var i: number = 0; i < this.sectionProperties.commentList.length; i++) {
if (this.sectionProperties.commentList[i].sectionProperties.data.id !== 'new')
this.sectionProperties.commentList[i].setCollapsed();