You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-17 21:42:17 +03:00
Fix stable-suffixed MSC4133 support (#4983)
* Fix stable-suffixed MSC4133 support It looked for the ".stable" suffixed feature to work out what URL to use but not to see whether the server supported it. This will only be relevant until the next spec release but may as well fix it. See also https://github.com/element-hq/element-web/pull/30649 * Fix awaiting
This commit is contained in:
@@ -542,6 +542,7 @@ export const UNSTABLE_MSC2666_QUERY_MUTUAL_ROOMS = "uk.half-shot.msc2666.query_m
|
|||||||
export const UNSTABLE_MSC4140_DELAYED_EVENTS = "org.matrix.msc4140";
|
export const UNSTABLE_MSC4140_DELAYED_EVENTS = "org.matrix.msc4140";
|
||||||
|
|
||||||
export const UNSTABLE_MSC4133_EXTENDED_PROFILES = "uk.tcpip.msc4133";
|
export const UNSTABLE_MSC4133_EXTENDED_PROFILES = "uk.tcpip.msc4133";
|
||||||
|
export const STABLE_MSC4133_EXTENDED_PROFILES = "uk.tcpip.msc4133.stable";
|
||||||
|
|
||||||
enum CrossSigningKeyType {
|
enum CrossSigningKeyType {
|
||||||
MasterKey = "master_key",
|
MasterKey = "master_key",
|
||||||
@@ -6903,7 +6904,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|||||||
* @returns `true` if supported, otherwise `false`
|
* @returns `true` if supported, otherwise `false`
|
||||||
*/
|
*/
|
||||||
public async doesServerSupportExtendedProfiles(): Promise<boolean> {
|
public async doesServerSupportExtendedProfiles(): Promise<boolean> {
|
||||||
return this.doesServerSupportUnstableFeature(UNSTABLE_MSC4133_EXTENDED_PROFILES);
|
return (
|
||||||
|
(await this.doesServerSupportUnstableFeature(UNSTABLE_MSC4133_EXTENDED_PROFILES)) ||
|
||||||
|
(await this.doesServerSupportUnstableFeature(STABLE_MSC4133_EXTENDED_PROFILES))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user