Skip to content

Commit 7546df8

Browse files
authored
Update client.ts
1 parent 7143515 commit 7546df8

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/client.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9338,20 +9338,24 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
93389338
* @param {object} data The JSON object returned by the server
93399339
*/
93409340

9341+
export type IgnoreMetadata = {
9342+
/**
9343+
* The instant the user decided to ignore this invite,
9344+
* as a Matrix timestamp.
9345+
*/
9346+
ts: number;
9347+
9348+
/**
9349+
* A human-readable reason for ignoring this invite.
9350+
*/
9351+
reason?: string;
9352+
};
9353+
93419354
/**
93429355
* Ignore all invites to this room.
93439356
*/
93449357
export type IgnoredRoomInvites = {
9345-
/**
9346-
* The room ID for the room to ignore.
9347-
*/
9348-
room_id: string;
9349-
9350-
/**
9351-
* When this instruction to ignore was decided by the user,
9352-
* as a Matrix timestamp.
9353-
*/
9354-
ts: number;
9358+
[room_id: string]: IgnoreMetadata;
93559359
};
93569360

93579361
/**

0 commit comments

Comments
 (0)