From fb664a12d784c98d9ff257025c975cf90511be3c Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Tue, 9 May 2023 11:49:13 -0300 Subject: [PATCH] feat: media auto-download view --- app/i18n/locales/en.json | 3 +- app/stacks/InsideStack.tsx | 2 ++ app/stacks/MasterDetailStack/index.tsx | 2 ++ app/stacks/MasterDetailStack/types.ts | 1 + app/stacks/types.ts | 1 + app/views/MediaAutoDownloadView/index.tsx | 35 +++++++++++++++++++++++ app/views/SettingsView/index.tsx | 7 +++++ ios/.xcode.env.local | 1 + 8 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 app/views/MediaAutoDownloadView/index.tsx create mode 100644 ios/.xcode.env.local diff --git a/app/i18n/locales/en.json b/app/i18n/locales/en.json index b9509eee9..30d7a7572 100644 --- a/app/i18n/locales/en.json +++ b/app/i18n/locales/en.json @@ -900,5 +900,6 @@ "Presence_Cap_Warning_Title": "User status temporarily disabled", "Presence_Cap_Warning_Description": "Active connections have reached the limit for the workspace, thus the service that handles user status is disabled. It can be re-enabled manually in workspace settings.", "Learn_more": "Learn more", - "and_N_more": "and {{count}} more" + "and_N_more": "and {{count}} more", + "Media_auto_download": "Media auto-download" } \ No newline at end of file diff --git a/app/stacks/InsideStack.tsx b/app/stacks/InsideStack.tsx index c1ed5fbcf..5422e64f3 100644 --- a/app/stacks/InsideStack.tsx +++ b/app/stacks/InsideStack.tsx @@ -46,6 +46,7 @@ import LanguageView from '../views/LanguageView'; import ThemeView from '../views/ThemeView'; import DefaultBrowserView from '../views/DefaultBrowserView'; import ScreenLockConfigView from '../views/ScreenLockConfigView'; +import MediaAutoDownloadView from '../views/MediaAutoDownloadView'; // Admin Stack import AdminPanelView from '../views/AdminPanelView'; // NewMessage Stack @@ -179,6 +180,7 @@ const SettingsStackNavigator = () => { + { + { + const navigation = useNavigation>(); + + return ( + + + + + + {}} + // onPress={() => navigateToScreen('E2EEncryptionSecurityView')} + testID='security-privacy-view-e2e-encryption' + /> + + {}} testID='security-privacy-view-screen-lock' /> + + + + + ); +}; + +export default MediaAutoDownload; diff --git a/app/views/SettingsView/index.tsx b/app/views/SettingsView/index.tsx index 623b5ec17..4d30e0fbb 100644 --- a/app/views/SettingsView/index.tsx +++ b/app/views/SettingsView/index.tsx @@ -224,6 +224,13 @@ const SettingsView = (): React.ReactElement => { testID='settings-view-theme' /> + navigateToScreen('MediaAutoDownloadView')} + testID='media-auto-download-view-theme' + /> +