mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Rename files
This commit is contained in:
19
ts/util/isInSystemContacts.std.ts
Normal file
19
ts/util/isInSystemContacts.std.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
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' ||
|
||||
typeof systemGivenName === 'string' ||
|
||||
typeof systemFamilyName === 'string');
|
||||
Reference in New Issue
Block a user