Skip to content

Commit 5e5fe0a

Browse files
committed
Use isVersionSupported() instead
1 parent 7b6c710 commit 5e5fe0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6598,8 +6598,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
65986598
* @return {Promise<boolean>} true if server supports the `logout_devices` parameter
65996599
*/
66006600
public async doesServerSupportLogoutDevices(): Promise<boolean> {
6601-
const response = await this.getVersions();
6602-
return response?.versions?.includes("r0.6.1");
6601+
return this.isVersionSupported("r0.6.1");
66036602
}
66046603

66056604
/**

0 commit comments

Comments
 (0)