feat(app): show paused-messaging banner across the app (#3178)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-03 19:31:43 +02:00
1 parent 973aaced96
commit bc5dcdfe21
61 files changed
+7917 -7775

No files matched your search

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {ACCOUNT_LIMITED_DESCRIPTOR} from '@app/features/channel/components/channel_header_components/developer_tools/OptionPresets';
import type {Nagbar, NagbarToggleKey} from '@app/features/ui/state/Nagbar';
import type {MessageDescriptor} from '@lingui/core';
import {msg} from '@lingui/core/macro';
@@ -164,6 +165,22 @@ export const getNagbarControls = (): Array<NagbarControlDefinition> => [
forceShowDisabled: (state) => state.forceEmailVerification,
forceHideDisabled: (state) => state.forceHideEmailVerification,
},
{
key: 'forceAccountLimited',
label: ACCOUNT_LIMITED_DESCRIPTOR,
forceKey: 'forceAccountLimited',
forceHideKey: 'forceHideAccountLimited',
resetKeys: ['forceAccountLimited'],
status: (state) =>
state.forceAccountLimited
? FORCE_ENABLED
: state.forceHideAccountLimited
? FORCE_DISABLED
: USING_ACTUAL_ACCOUNT_STATE,
useActualDisabled: (state) => !state.forceAccountLimited && !state.forceHideAccountLimited,
forceShowDisabled: (state) => state.forceAccountLimited,
forceHideDisabled: (state) => state.forceHideAccountLimited,
},
{
key: 'forceDesktopNotification',
label: DESKTOP_NOTIFICATION_NAGBAR_DESCRIPTOR,