You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Deprecate MatrixClient::resolveRoomAlias (#3316)
This commit is contained in:
committed by
GitHub
parent
e3498f0668
commit
eef67e2c03
@@ -8236,7 +8236,6 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
*/
|
||||
public getRoomIdForAlias(alias: string): Promise<{ room_id: string; servers: string[] }> {
|
||||
// eslint-disable-line camelcase
|
||||
// TODO: deprecate this or resolveRoomAlias
|
||||
const path = utils.encodeUri("/directory/room/$alias", {
|
||||
$alias: alias,
|
||||
});
|
||||
@@ -8246,10 +8245,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
/**
|
||||
* @returns Promise which resolves: Object with room_id and servers.
|
||||
* @returns Rejects: with an error response.
|
||||
* @deprecated use `getRoomIdForAlias` instead
|
||||
*/
|
||||
// eslint-disable-next-line camelcase
|
||||
public resolveRoomAlias(roomAlias: string): Promise<{ room_id: string; servers: string[] }> {
|
||||
// TODO: deprecate this or getRoomIdForAlias
|
||||
const path = utils.encodeUri("/directory/room/$alias", { $alias: roomAlias });
|
||||
return this.http.request(Method.Get, path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user