Skip to content

Commit 9f45986

Browse files
authored
Add MatrixClient.doesServerSupportLogoutDevices() for MSC2457 (#2297)
1 parent cde9356 commit 9f45986

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6593,6 +6593,14 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
65936593
}
65946594
}
65956595

6596+
/**
6597+
* Query the server to see if it supports the MSC2457 `logout_devices` parameter when setting password
6598+
* @return {Promise<boolean>} true if server supports the `logout_devices` parameter
6599+
*/
6600+
public doesServerSupportLogoutDevices(): Promise<boolean> {
6601+
return this.isVersionSupported("r0.6.1");
6602+
}
6603+
65966604
/**
65976605
* Get if lazy loading members is being used.
65986606
* @return {boolean} Whether or not members are lazy loaded by this client

0 commit comments

Comments
 (0)