diff --git a/src/client.ts b/src/client.ts index d02fa74fdc6..fe6e9d8c53b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -635,7 +635,7 @@ interface IJoinRequestBody { interface ITagMetadata { [key: string]: any; - order: number; + order?: number; } interface IMessagesResponse { @@ -4185,7 +4185,7 @@ export class MatrixClient extends TypedEventEmitter { + public setRoomTag(roomId: string, tagName: string, metadata: ITagMetadata = {}): Promise<{}> { const path = utils.encodeUri("/user/$userId/rooms/$roomId/tags/$tag", { $userId: this.credentials.userId!, $roomId: roomId,