Don't auto-insert ':' after mentions

Change-Id: I348a79b985e92c32475738c1c7e0a651b475f3f9
This commit is contained in:
SpiritCroc 2023-11-28 20:17:45 +01:00
parent e3b421c74b
commit 0cff637113
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ class AutoCompleter @AssistedInject constructor(
// Adding trailing space " " or ": " if the user started mention someone // Adding trailing space " " or ": " if the user started mention someone
val displayNameSuffix = val displayNameSuffix =
if (matrixItem is MatrixItem.UserItem) { if (false && matrixItem is MatrixItem.UserItem) {
": " ": "
} else { } else {
" " " "

View File

@ -886,7 +886,7 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
displayName.length, displayName.length,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
) )
append(if (startToCompose) ": " else " ") append(if (false && startToCompose) ": " else " ")
} }
if (startToCompose && displayName.startsWith("/")) { if (startToCompose && displayName.startsWith("/")) {
// Ensure displayName will not be interpreted as a Slash command // Ensure displayName will not be interpreted as a Slash command