Skip to content

Commit 13c307f

Browse files
committed
Lint
1 parent 242be9a commit 13c307f

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

src/matrixrtc/MatrixRTCSession.ts

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -879,24 +879,27 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
879879
MEMBER_EVENT_CHECK_PERIOD,
880880
);
881881
} else {
882-
await this.client._unstable_sendStateFuture(
883-
this.room.roomId,
884-
{
885-
// TODO: choose a reasonable timeout
886-
future_timeout: 10000,
887-
},
888-
EventType.GroupCallMemberPrefix,
889-
{}, // leave event
890-
stateKey,
891-
).then(res => {
892-
this.cancelFutureToken = res.cancel_token;
893-
this.scheduleRefreshFuture(res.refresh_token);
894-
}).catch((e) => logger.error("Failed to send future:", e));
882+
await this.client
883+
._unstable_sendStateFuture(
884+
this.room.roomId,
885+
{
886+
// TODO: choose a reasonable timeout
887+
future_timeout: 10000,
888+
},
889+
EventType.GroupCallMemberPrefix,
890+
{}, // leave event
891+
stateKey,
892+
)
893+
.then((res) => {
894+
this.cancelFutureToken = res.cancel_token;
895+
this.scheduleRefreshFuture(res.refresh_token);
896+
})
897+
.catch((e) => logger.error("Failed to send future:", e));
895898
}
896899
} else if (!legacy && this.cancelFutureToken !== undefined) {
897900
// TODO: remove this once the Synapse MSC4140 implementation cancels timeout futures on state change
898-
await this.client.
899-
_unstable_useFutureToken(this.cancelFutureToken)
901+
await this.client
902+
._unstable_useFutureToken(this.cancelFutureToken)
900903
.catch((e) => logger.error("Failed to cancel future:", e));
901904
}
902905
} catch (e) {

0 commit comments

Comments
 (0)