Skip to content

Commit

Permalink
Conversation screen: Don't users tap 'Unavailable user'
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Oct 28, 2023
1 parent 41a5d8f commit 49cb735
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/conversation-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,16 @@ const ConversationScreen = ({navigation, route}) => {
}, [personId, messages]);

const onPressName = useCallback(() => {
navigation.navigate(
'Prospect Profile Screen',
{
screen: 'Prospect Profile',
params: { personId, showBottomButtons: false },
}
);
}, [personId, name]);
if (isAvailableUser) {
navigation.navigate(
'Prospect Profile Screen',
{
screen: 'Prospect Profile',
params: { personId, showBottomButtons: false },
}
);
}
}, [isAvailableUser, personId, name]);

const maybeLoadNextPage = useCallback(async () => {
if (hasFetchedAll.current) {
Expand Down

0 comments on commit 49cb735

Please sign in to comment.