[🐴] Mark as read in convo menu (#3913)

* add mark as read option

* optimistic update + link up menu

* rm messageid
This commit is contained in:
Samuel Newman 2024-05-08 15:48:05 +01:00 committed by GitHub
parent 56f713077f
commit 38198fdf7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 8 deletions

View file

@ -275,7 +275,7 @@ function ChatListItem({convo}: {convo: ChatBskyConvoDefs.ConvoView}) {
a.pl_md,
a.py_sm,
a.gap_md,
a.pr_2xl,
a.pr_xl,
(hovered || pressed) && t.atoms.bg_contrast_25,
]}>
<View pointerEvents="none">
@ -340,6 +340,7 @@ function ChatListItem({convo}: {convo: ChatBskyConvoDefs.ConvoView}) {
// tricky because it captures the mouse event
hideTrigger
currentScreen="list"
showMarkAsRead={convo.unreadCount > 0}
/>
</View>
)}