From 36ee37f1a329342c47eca0760f7df9b20d17a6f3 Mon Sep 17 00:00:00 2001
From: Shravya Ramesh <shravs1208@gmail.com>
Date: Mon, 19 Apr 2021 20:53:25 -0700
Subject: Changed delete message title to unsend

---
 src/screens/chat/ChatScreen.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'src/screens/chat/ChatScreen.tsx')

diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx
index cafcada8..c89e033d 100644
--- a/src/screens/chat/ChatScreen.tsx
+++ b/src/screens/chat/ChatScreen.tsx
@@ -230,7 +230,12 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
           OverlayReactionList={() => null}
           messageActions={({copyMessage, deleteMessage}) => [
             copyMessage,
-            deleteMessage,
+            {
+              action: () => deleteMessage?.action,
+              title: 'Unsend Message',
+              icon: deleteMessage?.icon, // Use some SVG icon here | Optional
+              titleStyle: deleteMessage?.titleStyle, // StyleProp<TextStyle> | Optional
+            },
           ]}
           MessageFooter={MessageFooter}
           DateHeader={DateHeader}
-- 
cgit v1.2.3-70-g09d2

