don't store avatar to local storage if it is 'img/genericPerson.png', #339

This commit is contained in:
Simon Grim 2016-01-17 23:48:39 +05:00
parent e82959efde
commit 57cc22a2fc

View File

@ -389,7 +389,8 @@ function getAvatar(username, img) {
function(req, imagedata) {
if (imagedata && imagedata.length) {
_avatarMap[req.username] = imagedata;
_putResourceIntoStorage('avatar:' + username, imagedata);
if (imagedata !== 'img/genericPerson.png')
_putResourceIntoStorage('avatar:' + username, imagedata);
req.img.attr('src', imagedata);
}
}, {username: username, img: img}