isInSystemContacts should use systemName
This commit is contained in:
parent
f272433b7a
commit
56145fabcc
3 changed files with 20 additions and 2 deletions
|
@ -4,9 +4,16 @@
|
|||
export const isInSystemContacts = ({
|
||||
type,
|
||||
name,
|
||||
systemGivenName,
|
||||
systemFamilyName,
|
||||
}: Readonly<{
|
||||
type?: string;
|
||||
name?: string;
|
||||
systemGivenName?: string;
|
||||
systemFamilyName?: string;
|
||||
}>): boolean =>
|
||||
// `direct` for redux, `private` for models and the database
|
||||
(type === 'direct' || type === 'private') && typeof name === 'string';
|
||||
(type === 'direct' || type === 'private') &&
|
||||
(typeof name === 'string' ||
|
||||
typeof systemGivenName === 'string' ||
|
||||
typeof systemFamilyName === 'string');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue