Skip to content

Commit b6c13a2

Browse files
committed
Fix more key backup paths being unstable
1 parent 34c5598 commit b6c13a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2924,7 +2924,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
29242924
const path = this.makeKeyBackupPath(roomId, sessionId, version);
29252925
await this.http.authedRequest(
29262926
Method.Put, path.path, path.queryData, data,
2927-
{ prefix: ClientPrefix.Unstable },
2927+
{ prefix: ClientPrefix.V3 },
29282928
);
29292929
}
29302930

@@ -3215,7 +3215,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
32153215

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

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

0 commit comments

Comments
 (0)