@@ -6,8 +6,6 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
6
6
Please see LICENSE files in the repository root for full details.
7
7
*/
8
8
9
- import { MatrixClient } from "matrix-js-sdk/src/matrix" ;
10
-
11
9
import { SettingLevel } from "../SettingLevel" ;
12
10
import MatrixClientBackedController from "./MatrixClientBackedController" ;
13
11
import { WatchManager } from "../WatchManager" ;
@@ -53,9 +51,9 @@ export default class ServerSupportUnstableFeatureController extends MatrixClient
53
51
this . watchers . notifyUpdate ( this . settingName , null , level , settingValue ) ;
54
52
}
55
53
56
- protected async initMatrixClient ( oldClient : MatrixClient , newClient : MatrixClient ) : Promise < void > {
54
+ protected async initMatrixClient ( ) : Promise < void > {
57
55
// Check for stable version support first
58
- if ( this . stableVersion && ( await this . client . isVersionSupported ( this . stableVersion ) ) ) {
56
+ if ( this . stableVersion && ( await this . client ! . isVersionSupported ( this . stableVersion ) ) ) {
59
57
this . disabled = false ;
60
58
return ;
61
59
}
@@ -66,7 +64,7 @@ export default class ServerSupportUnstableFeatureController extends MatrixClient
66
64
for ( const featureGroup of this . unstableFeatureGroups ) {
67
65
const featureSupportList = await Promise . all (
68
66
featureGroup . map ( async ( feature ) => {
69
- const isFeatureSupported = await this . client . doesServerSupportUnstableFeature ( feature ) ;
67
+ const isFeatureSupported = await this . client ! . doesServerSupportUnstableFeature ( feature ) ;
70
68
return isFeatureSupported ;
71
69
} ) ,
72
70
) ;
0 commit comments