From b2e9de144c09c3154d62c3e3bfe43e21cfc45dbd Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 19 Jun 2024 11:51:43 +0100 Subject: [PATCH] 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 --- src/components/views/dialogs/devtools/ServerInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/devtools/ServerInfo.tsx b/src/components/views/dialogs/devtools/ServerInfo.tsx index 5b24ea4326..f88ab83273 100644 --- a/src/components/views/dialogs/devtools/ServerInfo.tsx +++ b/src/components/views/dialogs/devtools/ServerInfo.tsx @@ -55,7 +55,7 @@ export async function getServerVersionFromFederationApi(client: MatrixClient): P const ServerInfo: React.FC = ({ 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 => { try {