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
EventIndexPeg: Treat both cases of unavailable platform support the same.
This commit is contained in:
@@ -38,9 +38,7 @@ class EventIndexPeg {
|
||||
*/
|
||||
async init() {
|
||||
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
||||
if (indexManager === null) return false;
|
||||
|
||||
if (await indexManager.supportsEventIndexing() !== true) {
|
||||
if (!indexManager || await indexManager.supportsEventIndexing() !== true) {
|
||||
console.log("EventIndex: Platform doesn't support event indexing,",
|
||||
"not initializing.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user