signal-desktop/ts/util/isPhoneNumberSharingEnabled.ts

12 lines
313 B
TypeScript
Raw Normal View History

2021-08-19 01:04:38 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as RemoteConfig from '../RemoteConfig';
export function isPhoneNumberSharingEnabled(): boolean {
2023-02-23 21:32:19 +00:00
return Boolean(
RemoteConfig.isEnabled('desktop.internalUser') ||
RemoteConfig.isEnabled('desktop.pnp')
);
2021-08-19 01:04:38 +00:00
}