Skip to content

Commit

Permalink
Merge pull request #2864 from ONLYOFFICE/fix/bugfix
Browse files Browse the repository at this point in the history
[SSE] Show avatars for protected ranges
  • Loading branch information
JuliaRadzhabova authored Feb 27, 2024
2 parents efa9510 + ef72ef1 commit e9c02cd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ define([
name: record.displayValue,
displayName: record.displayValue,
initials: Common.Utils.getUserInitials(record.displayValue),
avatar: Common.UI.ExternalUsers.getImage(value),
avatar: Common.UI.ExternalUsers.getImage(value) || record.image || '',
usercolor: Common.UI.ExternalUsers.getColor(value),
email: record.value,
type: Asc.c_oSerUserProtectedRangeType.edit
Expand Down Expand Up @@ -419,6 +419,7 @@ define([
rec.name && item.set('name', rec.name);
rec.name && item.set('displayName', rec.name);
rec.email && item.set('email', rec.email);
rec.image && item.set('avatar', rec.image);
}
});
this._initSettings = false;
Expand All @@ -441,8 +442,12 @@ define([
value: item.email || '',
displayValue: item.name || '',
userId: item.id,
image: item.image,
hasDivider: !item.hasAccess && !divider && (index>0)
});
if (item.image && !Common.UI.ExternalUsers.getImage(item.id)) {
Common.UI.ExternalUsers.setImage(item.id, item.image);
}
if (!item.hasAccess)
divider = true;
});
Expand Down

0 comments on commit e9c02cd

Please sign in to comment.