fix: remove isDigitsOnly filter from SMS participants

This commit is contained in:
darthpaul 2022-05-01 21:09:33 +01:00
parent 72cbb342a6
commit 510dacb87e

View File

@ -103,7 +103,7 @@ fun Context.getMessages(threadId: Long, getImageResolutions: Boolean): ArrayList
val thread = cursor.getLongValue(Sms.THREAD_ID)
val subscriptionId = cursor.getIntValue(Sms.SUBSCRIPTION_ID)
val status = cursor.getIntValue(Sms.STATUS)
val participants = senderNumber.split(" ").filter { it.areDigitsOnly() }.map { number ->
val participants = senderNumber.split(" ").map { number ->
val phoneNumber = PhoneNumber(number, 0, "", number)
val participantPhoto = getNameAndPhotoFromPhoneNumber(number)
SimpleContact(0, 0, participantPhoto.name, photoUri, arrayListOf(phoneNumber), ArrayList(), ArrayList())