ICU-633 Added tilde to channel shortlink to match web app (#1391)

This commit is contained in:
Harrison Healey 2018-01-31 11:47:13 -05:00 committed by enahum
parent 29705d0715
commit 05587d789a

View file

@ -63,7 +63,7 @@ export default class ChannelLink extends React.PureComponent {
const channel = this.state.channel;
if (!channel) {
return <Text style={this.props.textStyle}>{'~' + this.props.channelName}</Text>;
return <Text style={this.props.textStyle}>{`~${this.props.channelName}`}</Text>;
}
const suffix = this.props.channelName.substring(channel.name.length);
@ -74,7 +74,7 @@ export default class ChannelLink extends React.PureComponent {
style={this.props.linkStyle}
onPress={this.handlePress}
>
{channel.display_name}
{`~${channel.display_name}`}
</Text>
{suffix}
</Text>