mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-16 14:51:56 +01:00
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
@ -55,7 +55,7 @@ export async function getServerVersionFromFederationApi(client: MatrixClient): P
|
|||||||
|
|
||||||
const ServerInfo: React.FC<IDevtoolsProps> = ({ onBack }) => {
|
const ServerInfo: React.FC<IDevtoolsProps> = ({ onBack }) => {
|
||||||
const cli = useContext(MatrixClientContext);
|
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 clientVersions = useAsyncMemo(() => cli.getVersions().catch(() => FAILED_TO_LOAD), [cli]);
|
||||||
const serverVersions = useAsyncMemo(async (): Promise<IServerWellKnown | symbol> => {
|
const serverVersions = useAsyncMemo(async (): Promise<IServerWellKnown | symbol> => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user