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
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 { Action } from "../../../dispatcher/actions";
import { UserTab } from "./UserTab";
import SdkConfig from "../../../SdkConfig";
interface Props {
onFinished: (dismissed: boolean) => void;
@@ -60,7 +61,7 @@ export default class ConfirmKeyStorageOffDialog extends React.Component<Props> {
a: (sub) => (
<>
<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 />
</a>
</>