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

EventIndexing: Rename the stop method.

This commit is contained in:
Damir Jelić
2019-11-12 15:40:49 +01:00
parent d911055f5d
commit ecbc47c548
2 changed files with 7 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ export default class EventIndexer {
const platform = PlatformPeg.get();
if (!platform.supportsEventIndexing()) return false;
platform.initEventIndex(userId);
return true;
}
async onSync(state, prevState, data) {
@@ -397,7 +398,7 @@ export default class EventIndexer {
this.crawlerRef = crawlerHandle;
}
stopCrawler() {
stop() {
this._crawlerRef.cancel();
this._crawlerRef = null;
}