Skip to content

Commit

Permalink
Merge pull request #1184 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 30, 2024
2 parents 3569a8c + 45d5fd5 commit 3803386
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 3803386

Please sign in to comment.