Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit da944b2

Browse files
authored
Merge pull request #6323 from matrix-org/t3chguy/ts/12
Convert SearchResult, InteractiveAuth, PushProcessor and Scheduler to TS
2 parents df28280 + 69cf642 commit da944b2

File tree

6 files changed

+334
-334
lines changed

6 files changed

+334
-334
lines changed

src/CallHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import { randomUppercaseString, randomLowercaseString } from "matrix-js-sdk/src/
8686
import EventEmitter from 'events';
8787
import SdkConfig from './SdkConfig';
8888
import { ensureDMExists, findDMForUser } from './createRoom';
89-
import { IPushRule, RuleId, TweakName, Tweaks } from "matrix-js-sdk/src/@types/PushRules";
89+
import { RuleId, TweakName, Tweaks } from "matrix-js-sdk/src/@types/PushRules";
9090
import { PushProcessor } from 'matrix-js-sdk/src/pushprocessor';
9191
import { WidgetLayoutStore, Container } from './stores/widgets/WidgetLayoutStore';
9292
import { getIncomingCallToastKey } from './toasts/IncomingCallToast';
@@ -484,7 +484,7 @@ export default class CallHandler extends EventEmitter {
484484
switch (newState) {
485485
case CallState.Ringing: {
486486
const incomingCallPushRule = (
487-
new PushProcessor(MatrixClientPeg.get()).getPushRuleById(RuleId.IncomingCall) as IPushRule
487+
new PushProcessor(MatrixClientPeg.get()).getPushRuleById(RuleId.IncomingCall)
488488
);
489489
const pushRuleEnabled = incomingCallPushRule?.enabled;
490490
const tweakSetToRing = incomingCallPushRule?.actions.some((action: Tweaks) => (

src/components/structures/InteractiveAuth.js

Lines changed: 0 additions & 300 deletions
This file was deleted.

0 commit comments

Comments
 (0)