Skip to content

Node.js based forum software built for the modern web

fixes #5146

Julian Lamdd8759b0e981
diff --git a/public/src/client/notifications.js b/public/src/client/notifications.js
index baeaa262cd..c4f17f5c97 100644
--- a/public/src/client/notifications.js
+++ b/public/src/client/notifications.js
@@ -13,6 +13,14 @@ define('forum/notifications', ['components', 'notifications', 'forum/infinitescr
if (err) {
return app.alertError(err);
}
+
+ socket.emit('notifications.getCount', function (err, count) {
+ if (err) {
+ return app.alertError(err.message);
+ }
+
+ notifs.updateNotifCount(count);
+ });
});
});