Skip to content

Commit 6534ea5

Browse files
committed
Rename "refresh" action to "restart"
1 parent 22f1012 commit 6534ea5

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
@@ -5350,7 +5350,7 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
53505350
}
53515351

53525352
/**
5353-
* Send/cancel/refresh a delayed event associated with the given delay_id.
5353+
* Manage a delayed event associated with the given delay_id.
53545354
*
53555355
* Note: This endpoint is unstable, and can throw an `Error`.
53565356
* 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
@@ -910,7 +910,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
910910

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

0 commit comments

Comments
 (0)