mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 20:24:32 +01:00
Set structured name when creating contacts.
Fixes #12305. When creating copies of contacts, set the structured name fields instead of the unstructured name fields. This fixes bugs where certain types of names are displayed incorrectly because the structured name is inaccurately reconstructed from the unstructured name. Closes #13366
This commit is contained in:
committed by
Greyson Parrelli
parent
c54313c32e
commit
cf89c988cf
@@ -37,7 +37,7 @@ class ContactListViewModel(application: Application) : AndroidViewModel(applicat
|
||||
val contactList: List<ContactDetails> = SystemContactsRepository.getAllSystemContacts(
|
||||
context = application,
|
||||
e164Formatter = { number -> PhoneNumberUtils.formatNumberToE164(number, "US") ?: number }
|
||||
).use { it.toList() }
|
||||
).use { it.toList().sortedBy { c -> c.givenName } }
|
||||
|
||||
_contacts.postValue(contactList)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user