Skip to content

Commit

Permalink
Explain "Unavailable"
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Oct 31, 2023
1 parent fa6a540 commit b66a899
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions components/conversation-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,24 @@ const ConversationScreen = ({navigation, route}) => {
{!messageFetchTimeout && isAvailableUser &&
<TextInputWithButton onPress={onPressSend}/>
}
{!messageFetchTimeout && !isAvailableUser &&
<DefaultText
style={{
maxWidth: 600,
width: '100%',
alignSelf: 'center',
textAlign: 'center',
padding: 5,
paddingTop: 10,
paddingBottom: 10,
backgroundColor: '#eee',
fontFamily: 'Trueno',
}}
>
This person isn't available right now. This often means their account
is inactive or was deleted.
</DefaultText>
}
</>
);
};
Expand Down
2 changes: 1 addition & 1 deletion components/speech-bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SpeechBubble = (props: Props) => {
onPress={onPress}
style={{
borderRadius: 10,
backgroundColor: props.fromCurrentUser ? '#70f' : '#dddddd',
backgroundColor: props.fromCurrentUser ? '#70f' : '#eee',
alignSelf: props.fromCurrentUser ? 'flex-end' : 'flex-start',
maxWidth: '80%',
padding: 10,
Expand Down

0 comments on commit b66a899

Please sign in to comment.