Fix conversation duplication glitch

This commit is contained in:
Naveen 2022-11-21 23:25:18 +05:30
parent e0787d7c83
commit 48ebef6420

View File

@ -112,7 +112,7 @@ fun Context.getMessages(
val thread = cursor.getLongValue(Sms.THREAD_ID)
val subscriptionId = cursor.getIntValue(Sms.SUBSCRIPTION_ID)
val status = cursor.getIntValue(Sms.STATUS)
val participants = senderNumber.split(getAddressSeparator().toRegex()).map { number ->
val participants = senderNumber.split(getAddressSeparator()).map { number ->
val phoneNumber = PhoneNumber(number, 0, "", number)
val participantPhoto = getNameAndPhotoFromPhoneNumber(number)
SimpleContact(0, 0, participantPhoto.name, photoUri, arrayListOf(phoneNumber), ArrayList(), ArrayList())