fix: use help_encryption_url of config instead of hardcoded https://element.io/help#encryption5 (#30746)

* fix: use `help_encryption_url` instead of hardcoded `https://element.io/help#encryption5`

* test: update snapshot
This commit is contained in:
Florian Duros 2025-09-22 16:31:24 +02:00 committed by GitHub
parent e3dceb3718
commit d79becc2a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import { EncryptionCardButtons } from "../settings/encryption/EncryptionCardButt
import { type OpenToTabPayload } from "../../../dispatcher/payloads/OpenToTabPayload"; import { type OpenToTabPayload } from "../../../dispatcher/payloads/OpenToTabPayload";
import { Action } from "../../../dispatcher/actions"; import { Action } from "../../../dispatcher/actions";
import { UserTab } from "./UserTab"; import { UserTab } from "./UserTab";
import SdkConfig from "../../../SdkConfig";
interface Props { interface Props {
onFinished: (dismissed: boolean) => void; onFinished: (dismissed: boolean) => void;
@ -60,7 +61,7 @@ export default class ConfirmKeyStorageOffDialog extends React.Component<Props> {
a: (sub) => ( a: (sub) => (
<> <>
<br /> <br />
<a href="https://element.io/help#encryption5" target="_blank" rel="noreferrer noopener"> <a href={SdkConfig.get("help_encryption_url")} target="_blank" rel="noreferrer noopener">
{sub} <PopOutIcon /> {sub} <PopOutIcon />
</a> </a>
</> </>

View File

@ -13,6 +13,7 @@ import { SettingsSection } from "../shared/SettingsSection";
import { _t } from "../../../../languageHandler"; import { _t } from "../../../../languageHandler";
import { SettingsHeader } from "../SettingsHeader"; import { SettingsHeader } from "../SettingsHeader";
import { useKeyStoragePanelViewModel } from "../../../viewmodels/settings/encryption/KeyStoragePanelViewModel"; import { useKeyStoragePanelViewModel } from "../../../viewmodels/settings/encryption/KeyStoragePanelViewModel";
import SdkConfig from "../../../../SdkConfig";
interface Props { interface Props {
/** /**
@ -55,7 +56,7 @@ export const KeyStoragePanel: React.FC<Props> = ({ onKeyStorageDisableClick }) =
} }
subHeading={_t("settings|encryption|key_storage|description", undefined, { subHeading={_t("settings|encryption|key_storage|description", undefined, {
a: (sub) => ( a: (sub) => (
<a href="https://element.io/help#encryption5" target="_blank" rel="noreferrer noopener"> <a href={SdkConfig.get("help_encryption_url")} target="_blank" rel="noreferrer noopener">
{sub} {sub}
</a> </a>
), ),

View File

@ -34,7 +34,7 @@ exports[`ConfirmKeyStorageOffDialog renders 1`] = `
If you sign out of all your devices you will lose your message history and will need to verify all your existing contacts again. If you sign out of all your devices you will lose your message history and will need to verify all your existing contacts again.
<br /> <br />
<a <a
href="https://element.io/help#encryption5" href="https://element.io/help#encryption"
rel="noreferrer noopener" rel="noreferrer noopener"
target="_blank" target="_blank"
> >