Release Sign in with QR out of labs (#10066)
This commit is contained in:
parent
477de46814
commit
5123d7e641
9 changed files with 12 additions and 66 deletions
|
@ -20,7 +20,6 @@ import type { IServerVersions } from "matrix-js-sdk/src/matrix";
|
|||
import { _t } from "../../../../languageHandler";
|
||||
import AccessibleButton from "../../elements/AccessibleButton";
|
||||
import SettingsSubsection from "../shared/SettingsSubsection";
|
||||
import SettingsStore from "../../../../settings/SettingsStore";
|
||||
|
||||
interface IProps {
|
||||
onShowQr: () => void;
|
||||
|
@ -33,12 +32,10 @@ export default class LoginWithQRSection extends React.Component<IProps> {
|
|||
}
|
||||
|
||||
public render(): JSX.Element | null {
|
||||
// Needs server support for MSC3882 and MSC3886:
|
||||
const msc3882Supported = !!this.props.versions?.unstable_features?.["org.matrix.msc3882"];
|
||||
const msc3886Supported = !!this.props.versions?.unstable_features?.["org.matrix.msc3886"];
|
||||
|
||||
// Needs to be enabled as a feature + server support MSC3886 or have a default rendezvous server configured:
|
||||
const offerShowQr =
|
||||
SettingsStore.getValue("feature_qr_signin_reciprocate_show") && msc3882Supported && msc3886Supported; // We don't support configuration of a fallback at the moment so we just check the MSCs
|
||||
const offerShowQr = msc3882Supported && msc3886Supported;
|
||||
|
||||
// don't show anything if no method is available
|
||||
if (!offerShowQr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue