Change defaults for conversation title generation
This commit is contained in:
parent
6a165da589
commit
bd922433e3
14 changed files with 142 additions and 24 deletions
|
@ -13,12 +13,13 @@ export function getE164(
|
|||
| 'systemGivenName'
|
||||
| 'systemFamilyName'
|
||||
| 'e164'
|
||||
| 'notSharingPhoneNumber'
|
||||
| 'sharingPhoneNumber'
|
||||
| 'profileKey'
|
||||
>
|
||||
): string | undefined {
|
||||
const { e164, notSharingPhoneNumber = false } = attributes;
|
||||
const { e164, profileKey, sharingPhoneNumber } = attributes;
|
||||
|
||||
if (notSharingPhoneNumber && !isInSystemContacts(attributes)) {
|
||||
if (!sharingPhoneNumber && profileKey && !isInSystemContacts(attributes)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue