From b4bcfb83a7a0777d37ce3a99240f8bd4a47e9bc9 Mon Sep 17 00:00:00 2001 From: Mega Date: Sun, 13 Sep 2015 09:26:34 +0300 Subject: [PATCH] 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 --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index 1bf68c6aca..282e76718f 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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);