filter out messages where every participant is blocked, or somehow invalid
This commit is contained in:
parent
e0052d5516
commit
6544351480
2 changed files with 2 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ fun Context.getMessages(threadId: Int? = null): ArrayList<Message> {
|
|||
}
|
||||
|
||||
messages = messages.filter { !isNumberBlocked(it.participants.firstOrNull()?.phoneNumber ?: "") }.toMutableList() as ArrayList<Message>
|
||||
messages = messages.filter { it.participants.isNotEmpty() }.toMutableList() as ArrayList<Message>
|
||||
return messages
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue