Can delete events from WebUI

This commit is contained in:
2025-11-28 10:22:44 +01:00
parent 94ce9c3c95
commit 3d27279a16
2 changed files with 57 additions and 16 deletions

View File

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