ElectronPlatform: Don't scope the event index per user.

pull/11125/head
Damir Jelić 2019-11-14 14:14:59 +01:00
parent b90a94bdd9
commit 7147af8f80
2 changed files with 4 additions and 4 deletions

View File

@ -252,8 +252,8 @@ ipcMain.on('seshat', async function(ev, payload) {
break; break;
case 'initEventIndex': case 'initEventIndex':
if (args[0] && eventIndex === null) { if (eventIndex === null) {
let p = path.normalize(path.join(eventStorePath, args[0])); let p = path.normalize(eventStorePath);
try { try {
await makeDir(p); await makeDir(p);
eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"}); eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"});

View File

@ -109,8 +109,8 @@ class SeshatIndexerManager extends BaseEventIndexManager {
return this._ipcCall('supportsEventIndexing'); return this._ipcCall('supportsEventIndexing');
} }
async initEventIndex(userId: string): Promise<> { async initEventIndex(): Promise<> {
return this._ipcCall('initEventIndex', userId); return this._ipcCall('initEventIndex');
} }
async addEventToIndex(ev: MatrixEvent, profile: MatrixProfile): Promise<> { async addEventToIndex(ev: MatrixEvent, profile: MatrixProfile): Promise<> {