ElectronPlatform: Don't scope the event index per user.
parent
b90a94bdd9
commit
7147af8f80
|
@ -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"});
|
||||||
|
|
|
@ -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<> {
|
||||||
|
|
Loading…
Reference in New Issue