From be64a1fecf0cbea5770704726bfd0fcd3d6ed2ce Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 23 Feb 2016 18:04:54 -0500 Subject: [PATCH] closes https://github.com/NodeBB/NodeBB/issues/4102 --- lib/persona.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/persona.js b/lib/persona.js index 69a0443..9b409b3 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -170,6 +170,10 @@ $(document).ready(function() { $('#menu [data-section="navigation"] ul').html($('#main-nav').html() + ($('#search-menu').html() || '') + ($('#logged-out-menu').html() || '')); $('#menu [data-section="profile"] ul').html($('#user-control-list').html()) .find('[component="user/status"]').remove(); + + socket.on('event:user_status_change', function(data) { + app.updateUserStatus($('#menu [component="user/status"]'), data.status); + }); } function setupHoverCards() {