Barış Soner Uşaklı
2022-02-04 10:37:59 -05:00
parent c5637d1527
commit dcb201dfa8
2 changed files with 6 additions and 0 deletions

View File

@@ -183,6 +183,8 @@ async function appendUnreadCounts({ uid, navigation, unreadData, query }) {
newTopic: unreadCounts.new || 0,
watchedTopic: unreadCounts.watched || 0,
unrepliedTopic: unreadCounts.unreplied || 0,
mobileUnread: 0,
unreadUrl: '/unread',
chat: results.unreadChatCount || 0,
notification: results.unreadNotificationCount || 0,
flags: results.unreadFlagCount || 0,
@@ -200,6 +202,8 @@ async function appendUnreadCounts({ uid, navigation, unreadData, query }) {
if (item && item.originalRoute === route) {
unreadData[filter] = _.zipObject(tidsByFilter[filter], tidsByFilter[filter].map(() => true));
item.content = content;
unreadCount.mobileUnread = content;
unreadCount.unreadUrl = route;
if (unreadCounts[filter] > 0) {
item.iconClass += ' unread-count';
}