private fun handleCommandSuggestions() { val containsCommand = CommandPattern.matcher(messageText).find()  commandSuggestions.value = if (containsCommand && selectedAttachments.value.isEmpty()) { val commandPattern = messageText.removePrefix("/") commands.filter { it.name.startsWith(commandPattern) } } else { emptyList() } }
Shows the command suggestion list popup if necessary.