Can send reaction from picker

This commit is contained in:
2025-11-28 11:41:19 +01:00
parent 756780513b
commit f5b16b6ce4
4 changed files with 71 additions and 0 deletions

View File

@@ -107,6 +107,21 @@ export class MatrixApiEvent {
});
}
/**
* React to event
*/
static async ReactToEvent(
room: Room,
event_id: string,
key: string
): Promise<void> {
await APIClient.exec({
method: "POST",
uri: `/matrix/room/${room.id}/event/${event_id}/react`,
jsonData: { key },
});
}
/**
* Delete an event
*/