diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-18 19:24:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 09:24:55 -0700 |
commit | 3304cd04249a2c39fa628b0339d6770bd26f8392 (patch) | |
tree | 0ea8400f5f06af6bac8b969a7ed71f5821181062 /src | |
parent | 32ba17a4f1dab9c6f4120a12ed8baa7fc7d01779 (diff) | |
download | voidsky-3304cd04249a2c39fa628b0339d6770bd26f8392.tar.zst |
notif settings lexicon change (#8518)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx | 6 | ||||
-rw-r--r-- | src/screens/Settings/NotificationSettings/index.tsx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx b/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx index 3177bcade..8d80e4ed3 100644 --- a/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx +++ b/src/screens/Settings/NotificationSettings/components/PreferenceControls.tsx @@ -85,7 +85,7 @@ export function Inner({ const newPreference = { ...preference, - filter: change, + include: change, } satisfies typeof preference mutate({ @@ -138,7 +138,7 @@ export function Inner({ )} </View> </Toggle.Group> - {'filter' in preference && ( + {'include' in preference && ( <> <Divider /> <Text style={[a.font_bold, a.text_md]}> @@ -147,7 +147,7 @@ export function Inner({ <Toggle.Group type="radio" label={_(msg`Filter who you receive notifications from`)} - values={[preference.filter]} + values={[preference.include]} onChange={onChangeFilter} disabled={channels.length === 0}> <View style={[a.gap_sm]}> diff --git a/src/screens/Settings/NotificationSettings/index.tsx b/src/screens/Settings/NotificationSettings/index.tsx index ec396d29a..800493575 100644 --- a/src/screens/Settings/NotificationSettings/index.tsx +++ b/src/screens/Settings/NotificationSettings/index.tsx @@ -260,8 +260,8 @@ function SettingPreview({ if (!preference) { return null } else { - if ('filter' in preference) { - if (preference.filter === 'all') { + if ('include' in preference) { + if (preference.include === 'all') { if (preference.list && preference.push) { return _(msg`In-app, Push, Everyone`) } else if (preference.list) { @@ -269,7 +269,7 @@ function SettingPreview({ } else if (preference.push) { return _(msg`Push, Everyone`) } - } else if (preference.filter === 'follows') { + } else if (preference.include === 'follows') { if (preference.list && preference.push) { return _(msg`In-app, Push, People you follow`) } else if (preference.list) { |