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