You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
EventIndexing: Rename the stop method.
This commit is contained in:
@@ -57,13 +57,14 @@ class EventIndexPeg {
|
||||
return true
|
||||
}
|
||||
|
||||
async stop() {
|
||||
if (this.index == null) return;
|
||||
index.stopCrawler();
|
||||
stop() {
|
||||
if (this.index === null) return;
|
||||
index.stop();
|
||||
this.index = null;
|
||||
}
|
||||
|
||||
async deleteEventIndex() {
|
||||
if (this.index == null) return;
|
||||
if (this.index === null) return;
|
||||
index.deleteEventIndex();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user