mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-30 17:14:55 +01:00
fix an error message shown at launching the app
This commit is contained in:
parent
fb8cb95e19
commit
420c1e9f5b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user