mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
ElectronPlatform: Don't scope the event index per user.
This commit is contained in:
parent
b90a94bdd9
commit
7147af8f80
2 changed files with 4 additions and 4 deletions
|
@ -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"});
|
||||
|
|
|
@ -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<> {
|
||||
|
|
Loading…
Reference in a new issue