aboutsummaryrefslogtreecommitdiff
path: root/src/screens/chat/ChatResultsCell.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/chat/ChatResultsCell.tsx')
-rw-r--r--src/screens/chat/ChatResultsCell.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/chat/ChatResultsCell.tsx b/src/screens/chat/ChatResultsCell.tsx
index 3678a2d7..d947c122 100644
--- a/src/screens/chat/ChatResultsCell.tsx
+++ b/src/screens/chat/ChatResultsCell.tsx
@@ -42,12 +42,12 @@ const ChatResultsCell: React.FC<ChatResults> = ({
const navigation = useNavigation();
const createChannelIfNotPresentAndNavigate = async () => {
try {
+ setChatModalVisible(false);
const channel = await createChannel(loggedInUser.userId, id, chatClient);
setChannel(channel);
setTimeout(() => {
- setChatModalVisible(false);
navigation.navigate('Chat');
- }, 500);
+ }, 100);
} catch (error) {
Alert.alert(ERROR_FAILED_TO_CREATE_CHANNEL);
}