Skip to content

Commit

Permalink
Merge pull request #1180 from element-hq/revert-1161-patch-1
Browse files Browse the repository at this point in the history
Revert "uploadRoomKeysToBackup: Use V3 route"
  • Loading branch information
MidhunSureshR authored Aug 20, 2024
2 parents 952e623 + a609269 commit 84c1bd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/matrix/net/HomeServerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ 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 {
options.prefix = CS_V3_PREFIX;
uploadRoomKeysToBackup(version: string, payload: Record<string, any>, options?: BaseRequestOptions): IHomeServerRequest {
return this._put(`/room_keys/keys`, {version}, payload, options);
}

Expand Down

0 comments on commit 84c1bd2

Please sign in to comment.