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;
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"});

View File

@ -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<> {