From 1ce4f2581152c5960e990bb5f68b310b698db244 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 19 Sep 2019 15:28:35 +0100 Subject: [PATCH] Use unstable prefix for add and bind --- src/base-apis.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base-apis.js b/src/base-apis.js index 2892d9af7..3b71f4d5d 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -1377,7 +1377,9 @@ MatrixBaseApis.prototype.addThreePid = function(creds, bind, callback) { MatrixBaseApis.prototype.addThreePidOnly = function(data) { const path = "/account/3pid/add"; 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) { const path = "/account/3pid/bind"; return this._http.authedRequest( - undefined, "POST", path, null, data, + undefined, "POST", path, null, data, { + prefix: httpApi.PREFIX_UNSTABLE, + }, ); };