You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Note cleanup issue
This commit is contained in:
@@ -1773,6 +1773,7 @@ MatrixBaseApis.prototype.requestEmailToken = async function(
|
|||||||
if (err.cors === "rejected" || err.httpStatus === 404) {
|
if (err.cors === "rejected" || err.httpStatus === 404) {
|
||||||
// Fall back to deprecated v1 API for now
|
// Fall back to deprecated v1 API for now
|
||||||
// TODO: Remove this path once v2 is only supported version
|
// TODO: Remove this path once v2 is only supported version
|
||||||
|
// See https://github.com/vector-im/riot-web/issues/10443
|
||||||
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
||||||
return await this._http.idServerRequest(
|
return await this._http.idServerRequest(
|
||||||
callback, "POST", "/validate/email/requestToken",
|
callback, "POST", "/validate/email/requestToken",
|
||||||
@@ -1824,6 +1825,7 @@ MatrixBaseApis.prototype.submitMsisdnToken = async function(
|
|||||||
if (err.cors === "rejected" || err.httpStatus === 404) {
|
if (err.cors === "rejected" || err.httpStatus === 404) {
|
||||||
// Fall back to deprecated v1 API for now
|
// Fall back to deprecated v1 API for now
|
||||||
// TODO: Remove this path once v2 is only supported version
|
// TODO: Remove this path once v2 is only supported version
|
||||||
|
// See https://github.com/vector-im/riot-web/issues/10443
|
||||||
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
||||||
return await this._http.idServerRequest(
|
return await this._http.idServerRequest(
|
||||||
undefined, "POST", "/validate/msisdn/submitToken",
|
undefined, "POST", "/validate/msisdn/submitToken",
|
||||||
@@ -1872,6 +1874,7 @@ MatrixBaseApis.prototype.lookupThreePid = async function(
|
|||||||
if (err.cors === "rejected" || err.httpStatus === 404) {
|
if (err.cors === "rejected" || err.httpStatus === 404) {
|
||||||
// Fall back to deprecated v1 API for now
|
// Fall back to deprecated v1 API for now
|
||||||
// TODO: Remove this path once v2 is only supported version
|
// TODO: Remove this path once v2 is only supported version
|
||||||
|
// See https://github.com/vector-im/riot-web/issues/10443
|
||||||
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
logger.warn("IS doesn't support v2, falling back to deprecated v1");
|
||||||
return await this._http.idServerRequest(
|
return await this._http.idServerRequest(
|
||||||
callback, "GET", "/lookup",
|
callback, "GET", "/lookup",
|
||||||
|
|||||||
Reference in New Issue
Block a user