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
Update types to match spec (#3330)
This commit is contained in:
committed by
GitHub
parent
8ff8685ae5
commit
8ab2e10471
@@ -635,7 +635,7 @@ interface IJoinRequestBody {
|
|||||||
|
|
||||||
interface ITagMetadata {
|
interface ITagMetadata {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
order: number;
|
order?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IMessagesResponse {
|
interface IMessagesResponse {
|
||||||
@@ -4185,7 +4185,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
|||||||
* @returns Promise which resolves: to an empty object
|
* @returns Promise which resolves: to an empty object
|
||||||
* @returns Rejects: with an error response.
|
* @returns Rejects: with an error response.
|
||||||
*/
|
*/
|
||||||
public setRoomTag(roomId: string, tagName: string, metadata: ITagMetadata): Promise<{}> {
|
public setRoomTag(roomId: string, tagName: string, metadata: ITagMetadata = {}): Promise<{}> {
|
||||||
const path = utils.encodeUri("/user/$userId/rooms/$roomId/tags/$tag", {
|
const path = utils.encodeUri("/user/$userId/rooms/$roomId/tags/$tag", {
|
||||||
$userId: this.credentials.userId!,
|
$userId: this.credentials.userId!,
|
||||||
$roomId: roomId,
|
$roomId: roomId,
|
||||||
|
|||||||
Reference in New Issue
Block a user