From 692c07ef0a95aa224f8ad7c7c1ba64e0da804285 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Tue, 11 Apr 2023 10:46:11 +0100 Subject: [PATCH] Use Capabilities type from js-sdk (#10535) --- src/components/views/settings/devices/LoginWithQRSection.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/settings/devices/LoginWithQRSection.tsx b/src/components/views/settings/devices/LoginWithQRSection.tsx index 1f10272690..1e0ddf70c2 100644 --- a/src/components/views/settings/devices/LoginWithQRSection.tsx +++ b/src/components/views/settings/devices/LoginWithQRSection.tsx @@ -19,6 +19,7 @@ import { IMSC3882GetLoginTokenCapability, IServerVersions, UNSTABLE_MSC3882_CAPABILITY, + Capabilities, } from "matrix-js-sdk/src/matrix"; import { _t } from "../../../../languageHandler"; @@ -28,8 +29,7 @@ import SettingsSubsection from "../shared/SettingsSubsection"; interface IProps { onShowQr: () => void; versions?: IServerVersions; - // we can't use the capabilities type from the js-sdk because it isn't exported - capabilities?: Record; + capabilities?: Capabilities; } export default class LoginWithQRSection extends React.Component {