Skip to content

Commit

Permalink
Note cleanup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Jul 30, 2019
1 parent 516dff0 commit 50c590a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/base-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@ MatrixBaseApis.prototype.requestEmailToken = async function(
if (err.cors === "rejected" || err.httpStatus === 404) {
// Fall back to deprecated v1 API for now
// 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");
return await this._http.idServerRequest(
callback, "POST", "/validate/email/requestToken",
Expand Down Expand Up @@ -1824,6 +1825,7 @@ MatrixBaseApis.prototype.submitMsisdnToken = async function(
if (err.cors === "rejected" || err.httpStatus === 404) {
// Fall back to deprecated v1 API for now
// 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");
return await this._http.idServerRequest(
undefined, "POST", "/validate/msisdn/submitToken",
Expand Down Expand Up @@ -1872,6 +1874,7 @@ MatrixBaseApis.prototype.lookupThreePid = async function(
if (err.cors === "rejected" || err.httpStatus === 404) {
// Fall back to deprecated v1 API for now
// 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");
return await this._http.idServerRequest(
callback, "GET", "/lookup",
Expand Down

0 comments on commit 50c590a

Please sign in to comment.