[🐴] 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
6 changed files with 52 additions and 8 deletions
+2 -1
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>
)}