@@ -45,7 +45,6 @@ interface IProps {
45
45
46
46
interface IState {
47
47
mjolnirEnabled : boolean ;
48
- newSessionManagerEnabled : boolean ;
49
48
}
50
49
51
50
export default class UserSettingsDialog extends React . Component < IProps , IState > {
@@ -56,15 +55,11 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
56
55
57
56
this . state = {
58
57
mjolnirEnabled : SettingsStore . getValue ( "feature_mjolnir" ) ,
59
- newSessionManagerEnabled : SettingsStore . getValue ( "feature_new_device_manager" ) ,
60
58
} ;
61
59
}
62
60
63
61
public componentDidMount ( ) : void {
64
- this . settingsWatchers = [
65
- SettingsStore . watchSetting ( "feature_mjolnir" , null , this . mjolnirChanged ) ,
66
- SettingsStore . watchSetting ( "feature_new_device_manager" , null , this . sessionManagerChanged ) ,
67
- ] ;
62
+ this . settingsWatchers = [ SettingsStore . watchSetting ( "feature_mjolnir" , null , this . mjolnirChanged ) ] ;
68
63
}
69
64
70
65
public componentWillUnmount ( ) : void {
@@ -76,11 +71,6 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
76
71
this . setState ( { mjolnirEnabled : newValue } ) ;
77
72
} ;
78
73
79
- private sessionManagerChanged : CallbackFn = ( settingName , roomId , atLevel , newValue ) => {
80
- // We can cheat because we know what levels a feature is tracked at, and how it is tracked
81
- this . setState ( { newSessionManagerEnabled : newValue } ) ;
82
- } ;
83
-
84
74
private getTabs ( ) : NonEmptyArray < Tab < UserTab > > {
85
75
const tabs : Tab < UserTab > [ ] = [ ] ;
86
76
@@ -160,18 +150,16 @@ export default class UserSettingsDialog extends React.Component<IProps, IState>
160
150
"UserSettingsSecurityPrivacy" ,
161
151
) ,
162
152
) ;
163
- if ( this . state . newSessionManagerEnabled ) {
164
- tabs . push (
165
- new Tab (
166
- UserTab . SessionManager ,
167
- _td ( "Sessions" ) ,
168
- "mx_UserSettingsDialog_sessionsIcon" ,
169
- < SessionManagerTab /> ,
170
- // don't track with posthog while under construction
171
- undefined ,
172
- ) ,
173
- ) ;
174
- }
153
+ tabs . push (
154
+ new Tab (
155
+ UserTab . SessionManager ,
156
+ _td ( "Sessions" ) ,
157
+ "mx_UserSettingsDialog_sessionsIcon" ,
158
+ < SessionManagerTab /> ,
159
+ // don't track with posthog while under construction
160
+ undefined ,
161
+ ) ,
162
+ ) ;
175
163
// Show the Labs tab if enabled or if there are any active betas
176
164
if (
177
165
SdkConfig . get ( "show_labs_settings" ) ||
0 commit comments