You've already forked matrix-js-sdk
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:
@@ -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 });
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user