feat: pass req.query to getUnreadData

v1.18.x
Barış Soner Uşaklı 4 years ago
parent b9482e3c87
commit 3d5fef6e80

@ -156,7 +156,7 @@ middleware.renderHeader = async function renderHeader(req, res, data) {
async function appendUnreadCounts({ uid, navigation, unreadData, query }) {
const originalRoutes = navigation.map(nav => nav.originalRoute);
const calls = {
unreadData: topics.getUnreadData({ uid: uid }),
unreadData: topics.getUnreadData({ uid: uid, query: query }),
unreadChatCount: messaging.getUnreadCount(uid),
unreadNotificationCount: user.notifications.getUnreadCount(uid),
unreadFlagCount: (async function () {

Loading…
Cancel
Save