mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
EventIndex: Start the crawler only if it's configured to start.
This commit is contained in:
parent
47156351a6
commit
0132c3bbe3
@ -120,7 +120,9 @@ export default class EventIndex {
|
|||||||
if (eventIndexWasEmpty) await addInitialCheckpoints();
|
if (eventIndexWasEmpty) await addInitialCheckpoints();
|
||||||
|
|
||||||
// Start our crawler.
|
// Start our crawler.
|
||||||
this.startCrawler();
|
if (SettingsStore.getValueAt(SettingLevel.DEVICE, 'enableCrawling')) {
|
||||||
|
this.startCrawler();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -490,5 +490,10 @@ export const SETTINGS = {
|
|||||||
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
||||||
displayName: _td("How long should the crawler wait between requests"),
|
displayName: _td("How long should the crawler wait between requests"),
|
||||||
default: 3000,
|
default: 3000,
|
||||||
|
},
|
||||||
|
"enableCrawling" : {
|
||||||
|
supportedLevels: LEVELS_DEVICE_ONLY_SETTINGS,
|
||||||
|
displayName: _td("How long should the crawler wait between requests"),
|
||||||
|
default: true,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user