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

use unstable prefix

This commit is contained in:
Bruno Windels
2020-02-19 10:07:52 +01:00
parent fe97dc3ece
commit ba33ef0a68

View File

@@ -1125,11 +1125,13 @@ MatrixBaseApis.prototype.deleteAlias = function(alias, callback) {
* @return {Promise} Resolves: an object with an `aliases` property, containing an array of local aliases * @return {Promise} Resolves: an object with an `aliases` property, containing an array of local aliases
* @return {module:http-api.MatrixError} Rejects: with an error response. * @return {module:http-api.MatrixError} Rejects: with an error response.
*/ */
MatrixBaseApis.prototype.getLocalAliases = MatrixBaseApis.prototype.unstableGetLocalAliases =
function(roomId, callback) { function(roomId, callback) {
const path = utils.encodeUri("/rooms/$roomId/aliases", const path = utils.encodeUri("/rooms/$roomId/aliases",
{$roomId: roomId}); {$roomId: roomId});
return this._http.authedRequest(callback, "GET", path); const prefix = PREFIX_UNSTABLE + "/org.matrix.msc2432";
return this._http.authedRequest(callback, "GET", path,
null, null, { prefix });
}; };
/** /**