Replace labs flag with a real setting
This commit is contained in:
@@ -99,7 +99,7 @@ class RoomListStore extends Store {
|
||||
}
|
||||
|
||||
_checkDisabled() {
|
||||
this.disabled = SettingsStore.isFeatureEnabled("feature_new_room_list");
|
||||
this.disabled = SettingsStore.getValue("feature_new_room_list");
|
||||
if (this.disabled) {
|
||||
console.warn("👋 legacy room list store has been disabled");
|
||||
}
|
||||
|
||||
@@ -72,9 +72,9 @@ export class RoomListStore2 extends AsyncStore<ActionPayload> {
|
||||
return this._matrixClient;
|
||||
}
|
||||
|
||||
// TODO: Remove enabled flag with the old RoomListStore: https://github.com/vector-im/riot-web/issues/14231
|
||||
// TODO: Remove enabled flag with the old RoomListStore: https://github.com/vector-im/riot-web/issues/14367
|
||||
private checkEnabled() {
|
||||
this.enabled = SettingsStore.isFeatureEnabled("feature_new_room_list");
|
||||
this.enabled = SettingsStore.getValue("feature_new_room_list");
|
||||
if (this.enabled) {
|
||||
console.log("⚡ new room list store engaged");
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ import { ITagMap } from "./algorithms/models";
|
||||
*/
|
||||
export class RoomListStoreTempProxy {
|
||||
public static isUsingNewStore(): boolean {
|
||||
return SettingsStore.isFeatureEnabled("feature_new_room_list");
|
||||
return SettingsStore.getValue("feature_new_room_list");
|
||||
}
|
||||
|
||||
public static addListener(handler: () => void): RoomListStoreTempToken {
|
||||
|
||||
Reference in New Issue
Block a user