From 0cff63711327e501b75da9d208eab3c7f38b348d Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 28 Nov 2023 20:17:45 +0100 Subject: [PATCH] Don't auto-insert ':' after mentions Change-Id: I348a79b985e92c32475738c1c7e0a651b475f3f9 --- .../im/vector/app/features/home/room/detail/AutoCompleter.kt | 2 +- .../home/room/detail/composer/MessageComposerFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/AutoCompleter.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/AutoCompleter.kt index 49dcb3b724..6f5434f7c5 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/AutoCompleter.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/AutoCompleter.kt @@ -319,7 +319,7 @@ class AutoCompleter @AssistedInject constructor( // Adding trailing space " " or ": " if the user started mention someone val displayNameSuffix = - if (matrixItem is MatrixItem.UserItem) { + if (false && matrixItem is MatrixItem.UserItem) { ": " } else { " " diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt index f45ca255ba..adda9e5140 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerFragment.kt @@ -886,7 +886,7 @@ class MessageComposerFragment : VectorBaseFragment(), A displayName.length, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ) - append(if (startToCompose) ": " else " ") + append(if (false && startToCompose) ": " else " ") } if (startToCompose && displayName.startsWith("/")) { // Ensure displayName will not be interpreted as a Slash command