mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
Revert "uploadRoomKeysToBackup: Use V3 route"
This commit is contained in:
parent
952e623b94
commit
a609269968
@ -259,8 +259,7 @@ export class HomeServerApi {
|
|||||||
return this._get(`/room_keys/keys/${encodeURIComponent(roomId)}/${encodeURIComponent(sessionId)}`, {version}, undefined, options);
|
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);
|
return this._put(`/room_keys/keys`, {version}, payload, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user