hide unread state for selected chat list item

In split view the chat list stays mounted alongside the open convo. The
selected item's unread indicator could flicker (read -> unread -> read) as
stale listConvos refetches raced the eventually-consistent read receipt.
Gate hasUnread on !selected so the open chat never shows unread affordances.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-15 12:44:36 +03:00
parent 02a47fb4a6
commit 1b0cdf0334
@@ -282,6 +282,7 @@ function BaseChatItem({
const playHaptic = useHaptics()
const queryClient = useQueryClient()
const hasUnread =
!selected &&
!isDeletedAccount &&
(convo.view.unreadCount > 0 ||
(convo.kind === 'group' &&