No need for spaces after npubs anymore

This commit is contained in:
Vitor Pamplona
2023-03-17 19:25:11 -04:00
parent d38a7169b8
commit adafb6b183

View File

@@ -189,7 +189,7 @@ class NewPostViewModel : ViewModel() {
userSuggestionAnchor?.let {
val lastWord = message.text.substring(0, it.end).substringAfterLast("\n").substringAfterLast(" ")
val lastWordStart = it.end - lastWord.length
val wordToInsert = "@${item.pubkeyNpub()} "
val wordToInsert = "@${item.pubkeyNpub()}"
message = TextFieldValue(
message.text.replaceRange(lastWordStart, it.end, wordToInsert),