Can send reaction from picker
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user