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
v1.18.x
Mega 10 years ago
parent 183528f4c9
commit b4bcfb83a7

@ -485,7 +485,7 @@ app.cacheBuster = null;
if(err) { if(err) {
return app.alertError(err.message); 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') .removeClass('away online dnd offline')
.addClass(status); .addClass(status);

Loading…
Cancel
Save