Send read receipts
This commit is contained in:
@@ -140,4 +140,14 @@ export class MatrixApiEvent {
|
||||
uri: `/matrix/room/${room.id}/event/${event_id}`,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Send event receipt
|
||||
*/
|
||||
static async SendReceipt(room: Room, event_id: string): Promise<void> {
|
||||
await APIClient.exec({
|
||||
method: "POST",
|
||||
uri: `/matrix/room/${room.id}/event/${event_id}/receipt`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user