Skip to content

Commit

Permalink
Fix more key backup paths being unstable (#2746)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored Oct 12, 2022
1 parent d06a3a4 commit cc025ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
const path = this.makeKeyBackupPath(roomId, sessionId, version);
await this.http.authedRequest(
Method.Put, path.path, path.queryData, data,
{ prefix: ClientPrefix.Unstable },
{ prefix: ClientPrefix.V3 },
);
}

Expand Down Expand Up @@ -3215,7 +3215,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa

const res = await this.http.authedRequest<IRoomsKeysResponse | IRoomKeysResponse | IKeyBackupSession>(
Method.Get, path.path, path.queryData, undefined,
{ prefix: ClientPrefix.Unstable },
{ prefix: ClientPrefix.V3 },
);

if ((res as IRoomsKeysResponse).rooms) {
Expand Down Expand Up @@ -3276,7 +3276,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
const path = this.makeKeyBackupPath(roomId, sessionId, version);
await this.http.authedRequest(
Method.Delete, path.path, path.queryData, undefined,
{ prefix: ClientPrefix.Unstable },
{ prefix: ClientPrefix.V3 },
);
}

Expand Down

0 comments on commit cc025ea

Please sign in to comment.