Update unknown users in the access modal

pull/1/head
yflory 5 years ago
parent dba2cb1860
commit 53a6c3c334

@ -2826,13 +2826,13 @@ define([
};
UIElements.displayAvatar = function (common, $container, href, name, cb) {
var displayDefault = function () {
var text = getFirstEmojiOrCharacter(name);
var text = typeof(href) === "string" ? href : getFirstEmojiOrCharacter(name);
var $avatar = $('<span>', {'class': 'cp-avatar-default'}).text(text);
$container.append($avatar);
if (cb) { cb(); }
};
if (!window.Symbol) { return void displayDefault(); } // IE doesn't have Symbol
if (!href) { return void displayDefault(); }
if (typeof(href) !== "string" || href.length === 1) { return void displayDefault(); }
var centerImage = function ($img, $image, img) {
var w = img.width;

@ -698,6 +698,7 @@ define([
}
// Otherwise it's a stranger
_owners[ed] = {
avatar: '?',
name: Messages.owner_unknownUser,
};
strangers++;

Loading…
Cancel
Save