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:
parent
8ace19112d
commit
b2e9de144c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue