Viktoriia 1 tydzień temu
rodzic
commit
07a33b0f2d

+ 0 - 1
src/screens/InAppScreens/MessagesScreen/ChatScreen/index.tsx

@@ -84,7 +84,6 @@ import MessageLocation from '../Components/MessageLocation';
 import { CACHED_ATTACHMENTS_DIR } from 'src/constants/constants';
 import { useConnection } from 'src/contexts/ConnectionContext';
 import moment from 'moment';
-import CustomComposer from '../CustomComposer';
 
 const options = {
   enableVibrateFallback: true,

+ 10 - 10
src/screens/InAppScreens/MessagesScreen/Components/AttachmentsModal.tsx

@@ -16,9 +16,9 @@ import MegaphoneIcon from 'assets/icons/messages/megaphone.svg';
 import LocationIcon from 'assets/icons/messages/location.svg';
 import CameraIcon from 'assets/icons/messages/camera.svg';
 import ImagesIcon from 'assets/icons/messages/images.svg';
-import PollIcon from 'assets/icons/messages/poll.svg';
+// import PollIcon from 'assets/icons/messages/poll.svg';
 import { storage, StoreType } from 'src/storage';
-import RouteC from './RouteC';
+// import RouteC from './RouteC';
 
 const AttachmentsModal = () => {
   const insets = useSafeAreaInsets();
@@ -194,7 +194,7 @@ const AttachmentsModal = () => {
             <Text style={styles.optionLabel}>Live</Text>
           </TouchableOpacity> */}
 
-          {chatDataRef.current?.isGroup ? (
+          {/* {chatDataRef.current?.isGroup ? (
             <TouchableOpacity
               style={styles.optionItem}
               onPress={() => {
@@ -204,7 +204,7 @@ const AttachmentsModal = () => {
               <PollIcon height={36} />
               <Text style={styles.optionLabel}>Poll</Text>
             </TouchableOpacity>
-          ) : null}
+          ) : null} */}
 
           {!chatDataRef.current?.isGroup ? (
             <TouchableOpacity style={styles.optionItem} onPress={handleReport}>
@@ -230,12 +230,12 @@ const AttachmentsModal = () => {
       name: 'route-b',
       component: RouteB,
       params: { onSendLocation: data?.onSendLocation, insetsBottom: insets.bottom } as any
-    },
-    {
-      name: 'route-c',
-      component: RouteC,
-      params: { onSendPoll: data?.onSendLocation, insetsBottom: insets.bottom } as any
     }
+    // {
+    //   name: 'route-c',
+    //   component: RouteC,
+    //   params: { onSendPoll: data?.onSendLocation, insetsBottom: insets.bottom } as any
+    // }
   ];
 
   return (
@@ -245,7 +245,7 @@ const AttachmentsModal = () => {
         backgroundColor: Colors.FILL_LIGHT
       }}
       enableRouterBackNavigation={true}
-      keyboardHandlerEnabled={false}
+      // keyboardHandlerEnabled={false}
       routes={routes}
       initialRoute="route-a"
       defaultOverlayOpacity={0}