Fix the last char of people's names being cut off in the invite dialog

If someone named "TravisR" was being searched for with just "Travis", the last R in their name would be cut off because of the highlighting. Entering "TravisR" would restore it. Likewise, searching for "vis" would have done the same thing.
This commit is contained in:
Travis Ralston 2020-02-28 14:08:43 -07:00
parent a44d96bb77
commit 7cfaa63aac

View file

@ -219,7 +219,7 @@ class DMRoomTile extends React.PureComponent {
}
// Push any text we missed (end of text)
if (i < (str.length - 1)) {
if (i < str.length) {
result.push(<span key={i + 'end'}>{str.substring(i)}</span>);
}