1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Use unstable prefix for add and bind

This commit is contained in:
J. Ryan Stinnett
2019-09-19 15:28:35 +01:00
parent f256f04440
commit 1ce4f25811

View File

@@ -1377,7 +1377,9 @@ MatrixBaseApis.prototype.addThreePid = function(creds, bind, callback) {
MatrixBaseApis.prototype.addThreePidOnly = function(data) { MatrixBaseApis.prototype.addThreePidOnly = function(data) {
const path = "/account/3pid/add"; const path = "/account/3pid/add";
return this._http.authedRequest( return this._http.authedRequest(
undefined, "POST", path, null, data, undefined, "POST", path, null, data, {
prefix: httpApi.PREFIX_UNSTABLE,
},
); );
}; };
@@ -1398,7 +1400,9 @@ MatrixBaseApis.prototype.addThreePidOnly = function(data) {
MatrixBaseApis.prototype.bindThreePid = function(data) { MatrixBaseApis.prototype.bindThreePid = function(data) {
const path = "/account/3pid/bind"; const path = "/account/3pid/bind";
return this._http.authedRequest( return this._http.authedRequest(
undefined, "POST", path, null, data, undefined, "POST", path, null, data, {
prefix: httpApi.PREFIX_UNSTABLE,
},
); );
}; };