From 7cfaa63aac337462f24aa5ddd1f473fa2ab7cc9a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 28 Feb 2020 14:08:43 -0700 Subject: [PATCH] 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. --- src/components/views/dialogs/InviteDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index e8c39b6d5a..a01c4cc481 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -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({str.substring(i)}); }