|
|
|
@ -562,8 +562,7 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|
|
|
|
|
|
|
|
|
if (data.users.length === 0) {
|
|
|
|
|
chatsListEl.append('<li><div><span>No users found!</span></div></li>');
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
} else {
|
|
|
|
|
data.users.forEach(function(userObj) {
|
|
|
|
|
function createUserImage() {
|
|
|
|
|
return (userObj.picture ?
|
|
|
|
@ -595,12 +594,10 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
} else {
|
|
|
|
|
chatsListEl.empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return Chats;
|
|
|
|
|
});
|
|
|
|
|