From 9fccb2c81f4ccd4bf2891929c8e91d167827548c Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Thu, 22 Apr 2021 19:29:47 -0400
Subject: changed method

---
 src/screens/chat/ChatScreen.tsx | 9 ---------
 1 file changed, 9 deletions(-)

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

diff --git a/src/screens/chat/ChatScreen.tsx b/src/screens/chat/ChatScreen.tsx
index 3cab3d25..57f2232e 100644
--- a/src/screens/chat/ChatScreen.tsx
+++ b/src/screens/chat/ChatScreen.tsx
@@ -125,15 +125,6 @@ const ChatScreen: React.FC<ChatScreenProps> = () => {
     },
   };
 
-  // Hide channel if no message was exchanged
-  useEffect(() => {
-    return () => {
-      if (channel?.state.messages.length === 0) {
-        channel.hide();
-      }
-    };
-  }, []);
-
   useEffect(() => {
     setTopInset(insets.top + HeaderHeight);
   });
-- 
cgit v1.2.3-70-g09d2

