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:
@@ -282,6 +282,7 @@ function BaseChatItem({
|
||||
const playHaptic = useHaptics()
|
||||
const queryClient = useQueryClient()
|
||||
const hasUnread =
|
||||
!selected &&
|
||||
!isDeletedAccount &&
|
||||
(convo.view.unreadCount > 0 ||
|
||||
(convo.kind === 'group' &&
|
||||
|
||||
Reference in New Issue
Block a user