mirror of https://github.com/vector-im/riot-web
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/4246pull/28217/head
parent
8ace19112d
commit
b2e9de144c
|
@ -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 New Issue