Fix avatar for anonymous users in secure pads

pull/1/head
yflory 2017-08-28 16:57:10 +02:00
parent 00fda0d7d7
commit d9a4a32bf9
1 changed files with 8 additions and 6 deletions

View File

@ -214,12 +214,14 @@ define([
var newName = myData.name;
var url = myData.avatar;
$displayName.text(newName || Messages.anonymous);
$avatar.html('');
UI.displayAvatar(Common, $avatar, url, newName, function ($img) {
if ($img) {
$userAdmin.find('button').addClass('avatar');
}
});
if (accountName) {
$avatar.html('');
UI.displayAvatar(Common, $avatar, url, newName, function ($img) {
if ($img) {
$userAdmin.find('button').addClass('avatar');
}
});
}
};
metadataMgr.onChange(updateButton);
updateButton();