Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use even more stable calls to /room_keys #2746

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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