Update for js-sdk interface change (#12638)

It's a separate method to force a capabilities fetch as of
https://github.com/matrix-org/matrix-js-sdk/pull/4246
This commit is contained in:
David Baker 2024-06-19 11:51:43 +01:00 committed by GitHub
parent 8ace19112d
commit b2e9de144c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ export async function getServerVersionFromFederationApi(client: MatrixClient): P
const ServerInfo: React.FC<IDevtoolsProps> = ({ onBack }) => {
const cli = useContext(MatrixClientContext);
const capabilities = useAsyncMemo(() => cli.getCapabilities(true).catch(() => FAILED_TO_LOAD), [cli]);
const capabilities = useAsyncMemo(() => cli.fetchCapabilities().catch(() => FAILED_TO_LOAD), [cli]);
const clientVersions = useAsyncMemo(() => cli.getVersions().catch(() => FAILED_TO_LOAD), [cli]);
const serverVersions = useAsyncMemo(async (): Promise<IServerWellKnown | symbol> => {
try {