Fix: When a user changes his online status, all [component="user/status"] elements on a page are changing. The same bug appears in:

/user/*
/users/*
/topic/*
/chats/*

Cold load: http://i.imgur.com/OL2njmf.jpg
After change my status: http://i.imgur.com/J6I8lOC.jpg
This commit is contained in:
Mega
2015-09-13 09:26:34 +03:00
parent 183528f4c9
commit b4bcfb83a7

View File

@@ -485,7 +485,7 @@ app.cacheBuster = null;
if(err) {
return app.alertError(err.message);
}
$('[component="user/status"]')
$('[data-uid="' + app.user.uid + '"] [component="user/status"], [component="header/profilelink"] [component="user/status"]')
.removeClass('away online dnd offline')
.addClass(status);