You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +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 {
|
||||
[key: string]: any;
|
||||
order: number;
|
||||
order?: number;
|
||||
}
|
||||
|
||||
interface IMessagesResponse {
|
||||
@@ -4185,7 +4185,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
|
||||
* @returns Promise which resolves: to an empty object
|
||||
* @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", {
|
||||
$userId: this.credentials.userId!,
|
||||
$roomId: roomId,
|
||||
|
||||
Reference in New Issue
Block a user