[Chat] Fix footer logic (#10785)

This commit is contained in:
Samuel Newman
2026-06-08 19:20:37 +03:00
committed by GitHub
parent 5c0429a3f7
commit d9345cb1cf
2 changed files with 26 additions and 2 deletions
@@ -738,7 +738,16 @@ function calculateCount(
moderateProfile(convo.primaryMember, moderationOpts).blocked ||
convo.primaryMember.handle === 'missing.invalid' ||
(convo.kind === 'group' && convo.details.lockStatus !== 'unlocked')
const unreadCount = !shouldIgnore && convo.view.unreadCount > 0 ? 1 : 0
const unreadJoinRequestCount =
convo.kind === 'group'
? (convo.details.unreadJoinRequestCount ?? 0)
: 0
const unreadCount =
!shouldIgnore &&
(convo.view.unreadCount > 0 || unreadJoinRequestCount > 0)
? 1
: 0
return acc + unreadCount
}, 0) ?? 0