mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
synapseadmin: add wrapper for room delete status
This commit is contained in:
parent
8a745c0d03
commit
5c8ea2c269
1 changed files with 6 additions and 0 deletions
|
|
@ -147,6 +147,12 @@ func (cli *Client) DeleteRoom(ctx context.Context, roomID id.RoomID, req ReqDele
|
|||
return resp, err
|
||||
}
|
||||
|
||||
func (cli *Client) DeleteRoomStatus(ctx context.Context, deleteID string) (resp RespDeleteRoomStatus, err error) {
|
||||
reqURL := cli.BuildAdminURL("v2", "rooms", "delete_status", deleteID)
|
||||
_, err = cli.Client.MakeRequest(ctx, http.MethodGet, reqURL, nil, &resp)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteRoomSync deletes a room from the server, optionally blocking it and/or purging all data from the database.
|
||||
//
|
||||
// This calls the synchronous version of the endpoint, which will block until the room is deleted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue