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

Commit 9cc7f3b

Browse files
authored
Merge pull request #2353 from Shailesh351/patch-1
[FIX] Channel Freeze Issue
2 parents ac067c2 + 2401aff commit 9cc7f3b

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)