Skip to content

Commit ff63e04

Browse files
committed
Rename "refresh" action to "restart"
1 parent 8e7d296 commit ff63e04

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/unit/matrix-client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ describe("MatrixClient", function () {
10111011

10121012
it("can update delayed events", async () => {
10131013
const delayId = "id";
1014-
const action = UpdateDelayedEventAction.Refresh;
1014+
const action = UpdateDelayedEventAction.Restart;
10151015
httpLookups = [
10161016
{
10171017
method: "POST",

src/@types/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export type SendDelayedEventResponse = {
9595

9696
export enum UpdateDelayedEventAction {
9797
Cancel = "cancel",
98-
Refresh = "refresh",
98+
Restart = "restart",
9999
Send = "send",
100100
}
101101

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5347,7 +5347,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
53475347
}
53485348

53495349
/**
5350-
* Send/cancel/refresh a delayed event associated with the given delay_id.
5350+
* Manage a delayed event associated with the given delay_id.
53515351
*
53525352
* Note: This endpoint is unstable, and can throw an `Error`.
53535353
* Check progress on [MSC4140](https://github.com/matrix-org/matrix-spec-proposals/pull/4140) for more details.

src/matrixrtc/MatrixRTCSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
909909

910910
private async delayDisconnection(refreshToken: string): Promise<void> {
911911
try {
912-
await this.client._unstable_updateDelayedEvent(refreshToken, UpdateDelayedEventAction.Refresh);
912+
await this.client._unstable_updateDelayedEvent(refreshToken, UpdateDelayedEventAction.Restart);
913913
this.scheduleDelayDisconnection(refreshToken);
914914
} catch (e) {
915915
logger.error("Failed to delay our disconnection event", e);

0 commit comments

Comments
 (0)