1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

Settings: Remove the crawler sleep time setting.

This commit is contained in:
Damir Jelić
2020-01-23 13:32:27 +01:00
parent 4953f32cba
commit 947ea9823d
3 changed files with 2 additions and 22 deletions

View File

@@ -46,8 +46,6 @@ export default class ManageEventIndex extends React.Component {
currentRoom: null,
eventIndexingEnabled:
SettingsStore.getValueAt(SettingLevel.DEVICE, 'enableEventIndexing'),
crawlerSleepTime:
SettingsStore.getValueAt(SettingLevel.DEVICE, 'crawlerSleepTime'),
};
}
@@ -102,20 +100,6 @@ export default class ManageEventIndex extends React.Component {
});
}
_onEventIndexingEnabledChange = (checked) => {
SettingsStore.setValue("enableCrawling", null, SettingLevel.DEVICE, checked);
if (checked) EventIndexPeg.start();
else EventIndexPeg.stop();
this.setState({eventIndexingEnabled: checked});
}
_onCrawlerSleepTimeChange = (e) => {
this.setState({crawlerSleepTime: e.target.value});
SettingsStore.setValue("crawlerSleepTime", null, SettingLevel.DEVICE, e.target.value);
}
_onDisable = async () => {
this.props.onFinished(false);
}