From a60926996895c42f69259933424b5dfa3ccfc474 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Tue, 20 Aug 2024 15:34:04 +0530 Subject: [PATCH] Revert "uploadRoomKeysToBackup: Use V3 route" --- src/matrix/net/HomeServerApi.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index 7f498bba..50e51c21 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -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, options: BaseRequestOptions = {}): IHomeServerRequest { - options.prefix = CS_V3_PREFIX; + uploadRoomKeysToBackup(version: string, payload: Record, options?: BaseRequestOptions): IHomeServerRequest { return this._put(`/room_keys/keys`, {version}, payload, options); }