fix wrong sender name from private contacts

- use SimpleContact.doesHavePhoneNumber to perform comparision between a sender and private contact. SimpleContact.doesHavePhoneNumber does equality check.
This commit is contained in:
darthpaul 2021-09-24 13:57:15 +01:00
parent 52ebeeedc6
commit 91d81e3bd8
2 changed files with 3 additions and 3 deletions

View file

@ -401,7 +401,7 @@ fun Context.getThreadContactNames(phoneNumbers: List<String>, privateContacts: A
if (name != number) {
names.add(name)
} else {
val privateContact = privateContacts.firstOrNull { it.doesContainPhoneNumber(number) }
val privateContact = privateContacts.firstOrNull { it.doesHavePhoneNumber(number) }
if (privateContact == null) {
names.add(name)
} else {