You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-12-04 05:02:41 +03:00
Fall back to the unstable endpoint if we receive a 405 status
This commit is contained in:
@@ -9391,7 +9391,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
((<MatrixError>err).httpStatus === 400 ||
|
||||
// This the correct standard status code for an unsupported
|
||||
// endpoint according to MSC3743.
|
||||
(<MatrixError>err).httpStatus === 404)
|
||||
(<MatrixError>err).httpStatus === 404 ||
|
||||
// This the correct standard status code for an invalid
|
||||
// method according to MSC3743.
|
||||
(<MatrixError>err).httpStatus === 405)
|
||||
) {
|
||||
return await this.http.authedRequest(Method.Get, path, queryParams, undefined, {
|
||||
prefix: "/_matrix/client/unstable/org.matrix.msc3030",
|
||||
|
||||
Reference in New Issue
Block a user