Skip to content

Commit

Permalink
Fix more key backup paths being unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Oct 11, 2022
1 parent 8eed354 commit 9836bd2
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 @@ -2926,7 +2926,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
const path = this.makeKeyBackupPath(roomId, sessionId, version);
return this.http.authedRequest(
undefined, Method.Put, path.path, path.queryData, data,
{ prefix: PREFIX_UNSTABLE },
{ prefix: PREFIX_V3 },
);
}

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

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

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

Expand Down

0 comments on commit 9836bd2

Please sign in to comment.