Merge pull request #1055 from ONLYOFFICE/fix/bugfix

[SSE] For Bug 51811
This commit is contained in:
Julia Radzhabova 2021-08-09 13:46:18 +03:00 committed by GitHub
commit 7db4733018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -726,7 +726,7 @@ define([
onApiAddComments: function(data) {
var resolved = Common.Utils.InternalSettings.get("sse-settings-resolvedcomment");
for (var i = 0; i < data.length; ++i) {
if (data[i].asc_getUserId() !== this.mode.user.id && (resolved || !data[i].asc_getSolved()) && AscCommon.UserInfoParser.canViewComment(data.asc_getUserName())) {
if (data[i].asc_getUserId() !== this.mode.user.id && (resolved || !data[i].asc_getSolved()) && AscCommon.UserInfoParser.canViewComment(data[i].asc_getUserName())) {
this.leftMenu.markCoauthOptions('comments');
break;
}