mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
isInSystemContacts should use systemName
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user