Merge pull request #1180 from element-hq/revert-1161-patch-1

Revert "uploadRoomKeysToBackup: Use V3 route"
This commit is contained in:
R Midhun Suresh 2024-08-20 15:41:32 +05:30 committed by GitHub
commit 84c1bd2044
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}