From 2a4642f3244684d21d531419f14eabab9db54fb0 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Wed, 15 Jul 2026 16:12:02 -0700 Subject: [PATCH] Add mark requests as read to chat settings menu (#11107) --- src/screens/Messages/ChatList.tsx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/screens/Messages/ChatList.tsx b/src/screens/Messages/ChatList.tsx index 53c342a799..26e225cbd2 100644 --- a/src/screens/Messages/ChatList.tsx +++ b/src/screens/Messages/ChatList.tsx @@ -41,7 +41,10 @@ import {ArrowRotateCounterClockwise_Stroke2_Corner0_Rounded as RetryIcon} from ' import {BubbleSmile_Stroke2_Corner2_Rounded_Large as BubbleSmileIcon} from '#/components/icons/Bubble' import {CircleCheck_Stroke2_Corner0_Rounded as CircleCheckIcon} from '#/components/icons/CircleCheck' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfoIcon} from '#/components/icons/CircleInfo' -import {Inbox_Stroke2_Corner2_Rounded_Large as InboxLargeIcon} from '#/components/icons/Inbox' +import { + Inbox_Stroke2_Corner2_Rounded as InboxIcon, + Inbox_Stroke2_Corner2_Rounded_Large as InboxLargeIcon, +} from '#/components/icons/Inbox' import { MessagePlus_Stroke2_Corner0_Rounded as MessagePlusIcon, MessagePlus_Stroke2_Corner0_Rounded as NewChatIcon, @@ -635,6 +638,15 @@ function ChatSettingsMenu({ }, }) + const {mutate: markAllRequestsRead} = useUpdateAllRead('request', { + onMutate: () => { + Toast.show(l`Marked all requests as read`, {type: 'success'}) + }, + onError: () => { + Toast.show(l`Failed to mark all requests as read`, {type: 'error'}) + }, + }) + return (