From 7147af8f8037727c9987b2398b125755035c63fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 14 Nov 2019 14:14:59 +0100 Subject: [PATCH] ElectronPlatform: Don't scope the event index per user. --- electron_app/src/electron-main.js | 4 ++-- src/vector/platform/ElectronPlatform.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 22538be7f0..76b8006a1a 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -252,8 +252,8 @@ ipcMain.on('seshat', async function(ev, payload) { break; case 'initEventIndex': - if (args[0] && eventIndex === null) { - let p = path.normalize(path.join(eventStorePath, args[0])); + if (eventIndex === null) { + let p = path.normalize(eventStorePath); try { await makeDir(p); eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"}); diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index 14f37442e8..1d405c76cd 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -109,8 +109,8 @@ class SeshatIndexerManager extends BaseEventIndexManager { return this._ipcCall('supportsEventIndexing'); } - async initEventIndex(userId: string): Promise<> { - return this._ipcCall('initEventIndex', userId); + async initEventIndex(): Promise<> { + return this._ipcCall('initEventIndex'); } async addEventToIndex(ev: MatrixEvent, profile: MatrixProfile): Promise<> {