A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(ChatSettingsSections): remove media section (#3543)
Jiralite503e538693d3
diff --git a/fluxer_app/src/features/user/components/settings_utils/search_index/ChatSettingsIndex.ts b/fluxer_app/src/features/user/components/settings_utils/search_index/ChatSettingsIndex.tsindex 394b998dc..145442a73 100644--- a/fluxer_app/src/features/user/components/settings_utils/search_index/ChatSettingsIndex.ts+++ b/fluxer_app/src/features/user/components/settings_utils/search_index/ChatSettingsIndex.ts@@ -469,7 +469,6 @@ export const chatSettingsIndex: Array<SearchableSettingDescriptor> = [{id: 'chat-settings-auto-send-gifs',tabType: 'chat_settings',- sectionId: 'media',label: AUTOMATICALLY_SEND_GIFS_WHEN_SELECTED_DESCRIPTOR,keywords: [ANIMATION_DESCRIPTOR,@@ -487,7 +486,6 @@ export const chatSettingsIndex: Array<SearchableSettingDescriptor> = [{id: 'chat-settings-save-gif-favorites',tabType: 'chat_settings',- sectionId: 'media',label: SAVE_GIF_FAVORITES_AS_SAVED_MEDIA_DESCRIPTOR,keywords: [ANIMATION_DESCRIPTOR,@@ -508,7 +506,6 @@ export const chatSettingsIndex: Array<SearchableSettingDescriptor> = [{id: 'chat-settings-media-buttons',tabType: 'chat_settings',- sectionId: 'media',label: MEDIA_BUTTONS_DESCRIPTOR,keywords: [MEDIA_ATTACHMENT_BUTTONS_DESCRIPTOR,@@ -750,7 +747,6 @@ export const chatSettingsIndex: Array<SearchableSettingDescriptor> = [{id: 'chat-settings-sequential-file-send',tabType: 'advanced_settings',- sectionId: 'chat',label: SEQUENTIAL_FILE_SEND_DESCRIPTOR,keywords: [SEQUENTIAL_SEND_DESCRIPTOR,diff --git a/fluxer_app/src/features/user/components/settings_utils/section_registry/ChatSettingsSections.ts b/fluxer_app/src/features/user/components/settings_utils/section_registry/ChatSettingsSections.tsindex 9f2974203..8228e6104 100644--- a/fluxer_app/src/features/user/components/settings_utils/section_registry/ChatSettingsSections.ts+++ b/fluxer_app/src/features/user/components/settings_utils/section_registry/ChatSettingsSections.ts@@ -116,10 +116,6 @@ const INLINE_DESCRIPTOR = msg({message: 'Inline',comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',});-const MEDIA_SIZE_DESCRIPTOR = msg({- message: 'Media size',- comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',-});const AUTOCOMPLETE_DESCRIPTOR = msg({message: 'Autocomplete',comment: 'Settings search synonym. Used to match this term when the user types it in the settings search bar.',@@ -174,11 +170,6 @@ const DISPLAY_DESCRIPTOR = msg({context: 'chat-settings-section',comment: 'Chat settings section for message display preferences.',});-const MEDIA_DESCRIPTOR = msg({- message: 'Media',- context: 'chat-settings-section',- comment: 'Chat settings section for image, video, embed, and media preferences.',-});const MANAGE_MESSAGES_PERMISSION_DESCRIPTOR = getPermissionTitleDescriptor(Permissions.MANAGE_MESSAGES)!;export const chatSettingsSections = [@@ -194,10 +185,19 @@ export const chatSettingsSections = [INLINE_MEDIA_DESCRIPTOR,EMBEDDED_MEDIA_DESCRIPTOR,UPLOADED_MEDIA_DESCRIPTOR,+ MEDIA_2_DESCRIPTOR,+ INLINE_DESCRIPTOR,+ IMAGES_DESCRIPTOR,+ VIDEOS_DESCRIPTOR,ATTACHMENTS_DESCRIPTOR,LINK_PREVIEWS_DESCRIPTOR,WEBSITE_PREVIEWS_DESCRIPTOR,SHOW_EMBEDS_DESCRIPTOR,+ EMBEDS_DESCRIPTOR,+ PREVIEWS_DESCRIPTOR,+ LINKS_DESCRIPTOR,+ URL_PREVIEW_DESCRIPTOR,+ LINK_PREVIEW_DESCRIPTOR,SPOILERS_DESCRIPTOR,SPOILER_DESCRIPTOR,HIDE_DESCRIPTOR,@@ -241,23 +241,4 @@ export const chatSettingsSections = [isAdvanced: false,tags: ['chat'],},- {- id: 'media',- tabType: 'chat_settings',- label: MEDIA_DESCRIPTOR,- keywords: [- EMBEDS_DESCRIPTOR,- PREVIEWS_DESCRIPTOR,- LINKS_DESCRIPTOR,- URL_PREVIEW_DESCRIPTOR,- LINK_PREVIEW_DESCRIPTOR,- MEDIA_2_DESCRIPTOR,- IMAGES_DESCRIPTOR,- VIDEOS_DESCRIPTOR,- ATTACHMENTS_DESCRIPTOR,- INLINE_DESCRIPTOR,- MEDIA_SIZE_DESCRIPTOR,- ],- isAdvanced: false,- },] as const satisfies ReadonlyArray<SectionDefinition>;