From afa6a98349b992b39de355f3bf4c50bb1625e83a Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 26 May 2026 20:01:10 +0300 Subject: [PATCH] [Chat] Empty state for native (#10603) --- src/screens/Messages/ChatList.tsx | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/screens/Messages/ChatList.tsx b/src/screens/Messages/ChatList.tsx index 69364f3fbc..50799714aa 100644 --- a/src/screens/Messages/ChatList.tsx +++ b/src/screens/Messages/ChatList.tsx @@ -132,6 +132,19 @@ export function MessagesScreenInner({navigation, route}: Props) { [navigation], ) + const openChatControl = useCallback(() => { + newChatControl.open() + }, [newChatControl]) + + const requireEmailVerification = useRequireEmailVerification() + const wrappedOpenChatControl = requireEmailVerification(openChatControl, { + instructions: [ + + Before you can message another user, you must first verify your email. + , + ], + }) + if (isWithinSplitView) { return ( <> @@ -144,7 +157,7 @@ export function MessagesScreenInner({navigation, route}: Props) { button={{ label: l`New chat`, text: l`New chat`, - onPress: newChatControl.open, + onPress: wrappedOpenChatControl, size: 'small', color: 'primary', icon: MessagePlusIcon, @@ -344,11 +357,11 @@ export function ChatList({ /> ) : ( )}