if status is changed close menu, and only update the status for the current user

main
barisusakli 9 years ago
parent b8e89825cd
commit 6ad88f5b7f

@ -185,7 +185,10 @@ $(document).ready(function() {
$('#menu [data-section="profile"] ul').find('[component="user/status"]').remove();
socket.on('event:user_status_change', function(data) {
app.updateUserStatus($('#menu [component="user/status"]'), data.status);
if (parseInt(data.uid, 10) === app.user.uid) {
app.updateUserStatus($('#menu [component="user/status"]'), data.status);
slideout.close();
}
});
}

Loading…
Cancel
Save