Skip to content

Commit

Permalink
fixup! client: add key backup functions
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jan 11, 2024
1 parent 1d7b1a1 commit 2a30ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ func (cli *Client) DeleteKeysInBackupForRoomAndSession(ctx context.Context, vers
// See: https://spec.matrix.org/v1.9/client-server-api/#get_matrixclientv3room_keysversion
func (cli *Client) GetKeyBackupVersions(ctx context.Context) (resp *RespRoomKeysVersion, err error) {
urlPath := cli.BuildClientURL("v3", "room_keys", "version")
_, err = cli.MakeRequest(ctx, http.MethodDelete, urlPath, nil, &resp)
_, err = cli.MakeRequest(ctx, http.MethodGet, urlPath, nil, &resp)
return
}

Expand Down

0 comments on commit 2a30ceb

Please sign in to comment.