Skip to content

Commit

Permalink
Merge pull request #5933 from akshayasalvi/typing-indicator-ellipses
Browse files Browse the repository at this point in the history
Typing indicator ellipses
  • Loading branch information
NikkiWines authored Nov 2, 2021
2 parents 127f78b + 40bc376 commit 6299f48
Showing 1 changed file with 14 additions and 28 deletions.
42 changes: 14 additions & 28 deletions src/pages/home/report/ReportTypingIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,34 +51,20 @@ class ReportTypingIndicator extends React.Component {
return <View style={[styles.chatItemComposeSecondaryRow]} />;
case 1:
return (
<View style={[styles.chatItemComposeSecondaryRow]}>
<Text
style={[
styles.chatItemComposeSecondaryRowSubText,
styles.chatItemComposeSecondaryRowOffset,
]}
numberOfLines={1}
>
{getDisplayName(this.state.usersTyping[0])}
{` ${this.props.translate('reportTypingIndicator.isTyping')}`}
</Text>
</View>
);
case 2:
return (
<View style={[styles.chatItemComposeSecondaryRow]}>
<Text
style={[
styles.chatItemComposeSecondaryRowSubText,
styles.chatItemComposeSecondaryRowOffset,
]}
numberOfLines={1}
>
{getDisplayName(this.state.usersTyping[0])}
{` ${this.props.translate('common.and')} `}
{getDisplayName(this.state.usersTyping[1])}
{` ${this.props.translate('reportTypingIndicator.areTyping')}`}
</Text>
<View style={[styles.chatItemComposeSecondaryRow, styles.flexRow]}>
<View style={[styles.chatItemComposeSecondaryRowOffset, styles.flexShrink1]}>
<Text
style={[styles.chatItemComposeSecondaryRowSubText]}
numberOfLines={1}
>
{getDisplayName(this.state.usersTyping[0])}
</Text>
</View>
<View style={[styles.flexShrink0]}>
<Text style={[styles.chatItemComposeSecondaryRowSubText]}>
{` ${this.props.translate('reportTypingIndicator.isTyping')}`}
</Text>
</View>
</View>
);
default:
Expand Down

0 comments on commit 6299f48

Please sign in to comment.