mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(app): ask everyone to review who can message them (#3323)
This commit is contained in:
1 parent
e9a4f33a7e
commit
dcc3273889
46 files changed
+3071
-484
No files matched your search
@@ -66,6 +66,10 @@ const TERMS_ACCEPTANCE_NAGBAR_DESCRIPTOR = msg({
|
||||
message: 'Terms acceptance nagbar',
|
||||
comment: 'Developer control label for the terms-acceptance banner.',
|
||||
});
|
||||
const PRIVACY_SETUP_NAGBAR_DESCRIPTOR = msg({
|
||||
message: 'Privacy setup nagbar',
|
||||
comment: 'Developer control label for the privacy setup banner.',
|
||||
});
|
||||
const VOICE_SESSION_RESTORE_NAGBAR_DESCRIPTOR = msg({
|
||||
message: 'Voice session restore nagbar',
|
||||
comment: 'Developer control label for the voice-session-restore banner.',
|
||||
@@ -301,6 +305,18 @@ export const getNagbarControls = (): Array<NagbarControlDefinition> => [
|
||||
forceShowDisabled: (state) => state.forceTermsAcceptance,
|
||||
forceHideDisabled: (state) => state.forceHideTermsAcceptance,
|
||||
},
|
||||
{
|
||||
key: 'forcePrivacySetup',
|
||||
label: PRIVACY_SETUP_NAGBAR_DESCRIPTOR,
|
||||
forceKey: 'forcePrivacySetup',
|
||||
forceHideKey: 'forceHidePrivacySetup',
|
||||
resetKeys: ['forcePrivacySetup'],
|
||||
status: (state) =>
|
||||
state.forcePrivacySetup ? FORCE_ENABLED : state.forceHidePrivacySetup ? FORCE_DISABLED : USING_ACTUAL_STATE,
|
||||
useActualDisabled: (state) => !state.forcePrivacySetup && !state.forceHidePrivacySetup,
|
||||
forceShowDisabled: (state) => state.forcePrivacySetup,
|
||||
forceHideDisabled: (state) => state.forceHidePrivacySetup,
|
||||
},
|
||||
{
|
||||
key: 'forceDesktopDownload',
|
||||
label: DESKTOP_DOWNLOAD_NAGBAR_DESCRIPTOR,
|
||||
|
||||
Reference in new issue
Block a user