Can delete events from WebUI
This commit is contained in:
@@ -91,4 +91,14 @@ export class MatrixApiEvent {
|
||||
jsonData: { content },
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an event
|
||||
*/
|
||||
static async DeleteEvent(room: Room, event_id: string): Promise<void> {
|
||||
await APIClient.exec({
|
||||
method: "DELETE",
|
||||
uri: `/matrix/room/${room.id}/event/${event_id}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user