MCPcopy
hub / github.com/signalapp/Signal-Desktop / isEnabled

Function isEnabled

ts/RemoteConfig.dom.ts:360–370  ·  view source on GitHub ↗
(
  name: ConfigKeyType,
  // when called from UI component, provide redux config (items.remoteConfig)
  reduxConfig?: ConfigMapType
)

Source from the content-addressed store, hash-verified

358}
359
360export function isEnabled(
361 name: ConfigKeyType,
362 // when called from UI component, provide redux config (items.remoteConfig)
363 reduxConfig?: ConfigMapType
364): boolean {
365 assertDev(
366 reduxConfig != null || config != null,
367 'getValue called before remote config is ready'
368 );
369 return get(reduxConfig ?? config, [name, 'enabled'], false);
370}
371
372export function getValue(
373 name: ConfigKeyType, // when called from UI component, provide redux config (items.remoteConfig)

Callers 8

isConditionalActiveFunction · 0.90
#selfCheckMethod · 0.90
initMessageCleanupFunction · 0.90
isLocalBackupsEnabledFunction · 0.90
isFeaturedEnabledNoReduxFunction · 0.90
_refreshRemoteConfigFunction · 0.85

Calls 2

assertDevFunction · 0.90
getFunction · 0.50

Tested by

no test coverage detected