Skip to content

Commit

Permalink
Merge pull request #1161 from NicolaiSoeborg/patch-1
Browse files Browse the repository at this point in the history
uploadRoomKeysToBackup: Use V3 route
  • Loading branch information
MidhunSureshR authored Aug 20, 2024
2 parents 8e446a4 + e924a76 commit 952e623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/matrix/net/HomeServerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ export class HomeServerApi {
return this._get(`/room_keys/keys/${encodeURIComponent(roomId)}/${encodeURIComponent(sessionId)}`, {version}, undefined, options);
}

uploadRoomKeysToBackup(version: string, payload: Record<string, any>, options?: BaseRequestOptions): IHomeServerRequest {
uploadRoomKeysToBackup(version: string, payload: Record<string, any>, options: BaseRequestOptions = {}): IHomeServerRequest {
options.prefix = CS_V3_PREFIX;
return this._put(`/room_keys/keys`, {version}, payload, options);
}

Expand Down

0 comments on commit 952e623

Please sign in to comment.