Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit f4f3123

Browse files
authored
Merge branch 'master' into chore/sdk-changes
2 parents 5bee43e + 9cc7f3b commit f4f3123

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/chat/rocket/android/helper/MessageParser.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ class MessageParser @Inject constructor(
7070

7171
message.mentions?.forEach {
7272
val mention = getMention(it)
73-
mentions.add(mention)
73+
if (mention.isNotEmpty()) {
74+
mentions.add(mention)
75+
}
7476
if (it.username != null) {
7577
text = text.replace("@${it.username}", mention)
7678
}

0 commit comments

Comments
 (0)