A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): leave the instance out of desktop download prompts
Hampus4d330a210651
diff --git a/fluxer_app/src/features/app/components/layout/app_layout/nagbars/CorruptedInstallationNagbar.tsx b/fluxer_app/src/features/app/components/layout/app_layout/nagbars/CorruptedInstallationNagbar.tsxindex 98e30a611..8ac6b84d7 100644--- a/fluxer_app/src/features/app/components/layout/app_layout/nagbars/CorruptedInstallationNagbar.tsx+++ b/fluxer_app/src/features/app/components/layout/app_layout/nagbars/CorruptedInstallationNagbar.tsx@@ -5,7 +5,6 @@ import {NagbarButton} from '@app/features/app/components/layout/NagbarButton';import {NagbarContent} from '@app/features/app/components/layout/NagbarContent';import {NAGBAR_TONES, NagbarToneKind} from '@app/features/app/components/layout/NagbarTones';import {DESKTOP_DOWNLOAD_URL} from '@app/features/app/config/I18nDisplayConstants';-import RuntimeConfig from '@app/features/app/state/RuntimeConfig';import {openExternalUrl} from '@app/features/ui/utils/NativeUtils';import {msg} from '@lingui/core/macro';import {useLingui} from '@lingui/react/macro';@@ -15,9 +14,9 @@ const CORRUPTED_INSTALLATION_MESSAGE_DESCRIPTOR = msg({message: 'Your installation is corrupted, and you need to reinstall the app for all functionality to work.',comment: 'Critical nagbar body shown when the desktop installation appears corrupted. Keep the tone plain.',});-const DOWNLOAD_PRODUCT_DESCRIPTOR = msg({- message: 'Download {productName}',- comment: 'Nagbar button label that downloads the desktop app. productName is the app name.',+const DOWNLOAD_THE_APP_DESCRIPTOR = msg({+ message: 'Download the app',+ comment: 'Nagbar button label in the desktop app that opens the desktop app download page.',});export const CorruptedInstallationNagbar = observer(({isMobile}: {isMobile: boolean}) => {const {i18n} = useLingui();@@ -40,7 +39,7 @@ export const CorruptedInstallationNagbar = observer(({isMobile}: {isMobile: boolonClick={handleDownload}data-flx="app.app-layout.nagbars.corrupted-installation-nagbar.nagbar-button.download">- {i18n._(DOWNLOAD_PRODUCT_DESCRIPTOR, {productName: RuntimeConfig.productName})}+ {i18n._(DOWNLOAD_THE_APP_DESCRIPTOR)}</NagbarButton>}data-flx="app.app-layout.nagbars.corrupted-installation-nagbar.nagbar-content"diff --git a/fluxer_app/src/features/app/components/layout/app_layout/nagbars/DesktopDownloadNagbar.tsx b/fluxer_app/src/features/app/components/layout/app_layout/nagbars/DesktopDownloadNagbar.tsxindex fb78c8786..8f602a371 100644--- a/fluxer_app/src/features/app/components/layout/app_layout/nagbars/DesktopDownloadNagbar.tsx+++ b/fluxer_app/src/features/app/components/layout/app_layout/nagbars/DesktopDownloadNagbar.tsx@@ -6,7 +6,6 @@ import {NagbarButton} from '@app/features/app/components/layout/NagbarButton';import {NagbarContent} from '@app/features/app/components/layout/NagbarContent';import {NAGBAR_TONES, NagbarToneKind} from '@app/features/app/components/layout/NagbarTones';import {DESKTOP_DOWNLOAD_URL} from '@app/features/app/config/I18nDisplayConstants';-import RuntimeConfig from '@app/features/app/state/RuntimeConfig';import {DOWNLOAD_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';import * as NagbarCommands from '@app/features/ui/commands/NagbarCommands';import {openExternalUrl} from '@app/features/ui/utils/NativeUtils';@@ -16,8 +15,8 @@ import {AndroidLogoIcon, AppleLogoIcon, WindowsLogoIcon} from '@phosphor-icons/rimport {observer} from 'mobx-react-lite';const DESKTOP_APP_DOWNLOAD_MESSAGE_DESCRIPTOR = msg({- message: 'Get the {productName} desktop app for system-wide push-to-talk and a few other goodies.',- comment: 'Nagbar body encouraging web users to download the desktop app. productName is the app name.',+ message: 'Get the desktop app for system-wide push-to-talk and a few other goodies.',+ comment: 'Nagbar body encouraging web users to download the desktop app.',});export const DesktopDownloadNagbar = observer(({isMobile}: {isMobile: boolean}) => {const {i18n} = useLingui();@@ -39,7 +38,7 @@ export const DesktopDownloadNagbar = observer(({isMobile}: {isMobile: boolean})<NagbarContentisMobile={isMobile}onDismiss={handleDismiss}- message={i18n._(DESKTOP_APP_DOWNLOAD_MESSAGE_DESCRIPTOR, {productName: RuntimeConfig.productName})}+ message={i18n._(DESKTOP_APP_DOWNLOAD_MESSAGE_DESCRIPTOR)}actions={<><spandiff --git a/fluxer_app/src/features/app/components/layout/sidebar_nav/DownloadButton.tsx b/fluxer_app/src/features/app/components/layout/sidebar_nav/DownloadButton.tsxindex ade74a032..c5bcd6b26 100644--- a/fluxer_app/src/features/app/components/layout/sidebar_nav/DownloadButton.tsx+++ b/fluxer_app/src/features/app/components/layout/sidebar_nav/DownloadButton.tsx@@ -3,7 +3,6 @@import {GuildListActionButton} from '@app/features/app/components/layout/sidebar_nav/GuildListActionButton';import styles from '@app/features/app/components/layout/sidebar_nav/GuildListActionButton.module.css';import {DESKTOP_DOWNLOAD_URL} from '@app/features/app/config/I18nDisplayConstants';-import RuntimeConfig from '@app/features/app/state/RuntimeConfig';import HiddenGuildListButtons from '@app/features/guild/state/HiddenGuildListButtons';import {openExternalUrlWithWarning} from '@app/features/messaging/utils/ExternalLinkUtils';import {MenuGroup} from '@app/features/ui/action_menu/MenuGroup';@@ -16,8 +15,8 @@ import {observer} from 'mobx-react-lite';import type React from 'react';const DOWNLOAD_DESCRIPTOR = msg({- message: 'Download {productName}',- comment: 'Short label in the sidebar navigation download button. Preserve {productName}; it is inserted by code.',+ message: 'Download desktop app',+ comment: 'Short label in the sidebar navigation download button. Opens the desktop app download page.',});export const DownloadButton = observer(() => {const {i18n} = useLingui();@@ -52,8 +51,8 @@ export const DownloadButton = observer(() => {};return (<GuildListActionButton- label={i18n._(DOWNLOAD_DESCRIPTOR, {productName: RuntimeConfig.productName})}- tooltip={() => i18n._(DOWNLOAD_DESCRIPTOR, {productName: RuntimeConfig.productName})}+ label={i18n._(DOWNLOAD_DESCRIPTOR)}+ tooltip={() => i18n._(DOWNLOAD_DESCRIPTOR)}icon={<DownloadSimpleIconweight="bold"