mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
test for empty string in mentions
This commit is contained in:
parent
7146838f63
commit
abf6cc00ae
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user