diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt index 1bd8df1da..8491b4ae1 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt @@ -222,7 +222,10 @@ open class NewPostViewModel : ViewModel() { if (replyNote.event !is CommunityDefinitionEvent) { replyNote.author?.let { replyUser -> val currentMentions = - (replyNote.event as? TextNoteEvent)?.mentions()?.map { LocalCache.getOrCreateUser(it) } + (replyNote.event as? TextNoteEvent) + ?.mentions() + ?.filter { it.isNotEmpty() } + ?.map { LocalCache.getOrCreateUser(it) } ?: emptyList() if (currentMentions.contains(replyUser)) {