Send read receipts

This commit is contained in:
2025-12-01 10:42:19 +01:00
parent 849aef9343
commit 9359dc5be0
4 changed files with 60 additions and 1 deletions

View File

@@ -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`,
});
}
}