Update to support the whole typing name

This commit is contained in:
ariskotsomitopoulos 2021-10-11 12:29:00 +03:00
parent 3a6259fd29
commit a2c790b4a1
1 changed files with 1 additions and 2 deletions

View File

@ -220,10 +220,9 @@ class AutoCompleter @AssistedInject constructor(
// Replace the word by its completion
val displayName = matrixItem.getBestName()
// Adding trailing space " " or ": " if the user started mention someone
val displayNameSuffix =
if (firstChar == "@" && editText.length() == 1) {
if (firstChar == "@" && startIndex == 0) {
": "
} else {
" "