Show user's Matrix ID and device ID in developer settings tab (#2559)

This commit is contained in:
Hugh Nimmo-Smith
2024-08-16 15:37:57 +01:00
committed by GitHub
parent 69b762b9ed
commit f562cc1e7f
2 changed files with 18 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ import UserIcon from "../icons/User.svg?react";
import FeedbackIcon from "../icons/Feedback.svg?react";
import { SelectInput } from "../input/SelectInput";
import { FieldRow, InputField } from "../input/Input";
import { Body, Caption } from "../typography/Typography";
import { Caption } from "../typography/Typography";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { ProfileSettingsTab } from "./ProfileSettingsTab";
import { FeedbackSettingsTab } from "./FeedbackSettingsTab";
@@ -239,13 +239,21 @@ export const SettingsModal: FC<Props> = ({
</>
}
>
<FieldRow>
<Body className={styles.fieldRowText}>
{t("version", {
version: import.meta.env.VITE_APP_VERSION || "dev",
})}
</Body>
</FieldRow>
<p>
{t("version", {
version: import.meta.env.VITE_APP_VERSION || "dev",
})}
</p>
<p>
{t("matrix_id", {
id: client.getUserId() || "unknown",
})}
</p>
<p>
{t("device_id", {
id: client.getDeviceId() || "unknown",
})}
</p>
<FieldRow>
<InputField
id="duplicateTiles"