get the Photo Uri of private contacts too

This commit is contained in:
tibbi 2020-05-20 16:52:43 +02:00
parent 81e5905bf7
commit 1c1a2d2855
3 changed files with 4 additions and 1 deletions

View file

@ -155,6 +155,7 @@ class MainActivity : SimpleActivity() {
conversations.filter { it.title == it.phoneNumber }.forEach { conversation ->
privateContacts.firstOrNull { it.phoneNumber == conversation.phoneNumber }?.apply {
conversation.title = name
conversation.photoUri = photoUri
}
}
}

View file

@ -104,6 +104,7 @@ class ThreadActivity : SimpleActivity() {
privateContacts.firstOrNull { it.phoneNumber == participant.phoneNumber }?.apply {
senderNumbersToReplace[participant.phoneNumber] = name
participant.name = name
participant.photoUri = photoUri
}
}