From 45cc30a91b3e177d471fdcf6e2b3d739c839e606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 3 Jun 2018 15:03:45 -0400 Subject: [PATCH] remove deprecated code unread counts are loaded on cold load --- public/src/client/footer.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/public/src/client/footer.js b/public/src/client/footer.js index 7bc187921e..53b9d334c0 100644 --- a/public/src/client/footer.js +++ b/public/src/client/footer.js @@ -75,20 +75,6 @@ define('forum/footer', ['notifications', 'chat', 'components', 'translator'], fu socket.on('event:new_post', onNewPost); } - // DEPRECATED: remove in 1.8.0 - if (app.user.uid) { - socket.emit('user.getUnreadCounts', function (err, data) { - if (err) { - return app.alert(err.message); - } - - updateUnreadCounters(data); - - updateUnreadChatCount(data.unreadChatCount); - Notifications.updateNotifCount(data.unreadNotificationCount); - }); - } - function updateUnreadCounters(data) { updateUnreadTopicCount('/unread', data.unreadTopicCount); updateUnreadTopicCount('/unread/new', data.unreadNewTopicCount);