fix an error message shown at launching the app

This commit is contained in:
tibbi 2022-12-08 09:18:04 +01:00
parent fb8cb95e19
commit 420c1e9f5b
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ fun Context.getConversations(threadId: Long? = null, privateContacts: ArrayList<
val rawIds = cursor.getStringValue(Threads.RECIPIENT_IDS)
val recipientIds = rawIds.split(" ").filter { it.areDigitsOnly() }.map { it.toInt() }.toMutableList()
val phoneNumbers = getThreadPhoneNumbers(recipientIds)
if (phoneNumbers.any { isNumberBlocked(it, blockedNumbers) }) {
if (phoneNumbers.isEmpty() || phoneNumbers.any { isNumberBlocked(it, blockedNumbers) }) {
return@queryCursor
}