public fun selectMention(user: User) { val augmentedMessageText = "${messageText.substringBeforeLast("@")}@${user.name} "  setMessageInput(augmentedMessageText) selectedMentions += user }
Autocompletes the current text input with the mention from the selected user.