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 <sumner@beeper.com>
  • Loading branch information
sumnerevans committed Jan 11, 2024
1 parent 2a30ceb commit 1c6e561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2041,10 +2041,10 @@ func (cli *Client) DeleteKeysInBackupForRoomAndSession(ctx context.Context, vers
return
}

// GetkeyBackupVersions returns information about the latest backup version.
// GetKeyBackupLatestVersion returns information about the latest backup version.
//
// See: https://spec.matrix.org/v1.9/client-server-api/#get_matrixclientv3room_keysversion
func (cli *Client) GetKeyBackupVersions(ctx context.Context) (resp *RespRoomKeysVersion, err error) {
func (cli *Client) GetKeyBackupLatestVersion(ctx context.Context) (resp *RespRoomKeysVersion, err error) {
urlPath := cli.BuildClientURL("v3", "room_keys", "version")
_, err = cli.MakeRequest(ctx, http.MethodGet, urlPath, nil, &resp)
return
Expand Down

0 comments on commit 1c6e561

Please sign in to comment.