Skip to content

Commit 7147af8

Browse files
committed
ElectronPlatform: Don't scope the event index per user.
1 parent b90a94b commit 7147af8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎electron_app/src/electron-main.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ ipcMain.on('seshat', async function(ev, payload) {
252252
break;
253253

254254
case 'initEventIndex':
255-
if (args[0] && eventIndex === null) {
256-
let p = path.normalize(path.join(eventStorePath, args[0]));
255+
if (eventIndex === null) {
256+
let p = path.normalize(eventStorePath);
257257
try {
258258
await makeDir(p);
259259
eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"});

‎src/vector/platform/ElectronPlatform.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class SeshatIndexerManager extends BaseEventIndexManager {
109109
return this._ipcCall('supportsEventIndexing');
110110
}
111111

112-
async initEventIndex(userId: string): Promise<> {
113-
return this._ipcCall('initEventIndex', userId);
112+
async initEventIndex(): Promise<> {
113+
return this._ipcCall('initEventIndex');
114114
}
115115

116116
async addEventToIndex(ev: MatrixEvent, profile: MatrixProfile): Promise<> {

0 commit comments

Comments
 (0)