Strip " (IRC)" from display names inserted into the timeline

This commit is contained in:
Luke Barnard 2017-07-27 10:50:41 +01:00
parent c4f049effe
commit f19fade448

View file

@ -150,7 +150,7 @@ const Pill = React.createClass({
const member = this.state.member; const member = this.state.member;
if (member) { if (member) {
userId = member.userId; userId = member.userId;
linkText = member.name; linkText = member.name.replace(' (IRC)', ''); // FIXME when groups are done
avatar = <MemberAvatar member={member} width={16} height={16}/>; avatar = <MemberAvatar member={member} width={16} height={16}/>;
pillClass = 'mx_UserPill'; pillClass = 'mx_UserPill';
} }