mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
ElectronPlatform: Don't scope the event index per user.
This commit is contained in:
parent
b90a94bdd9
commit
7147af8f80
@ -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 New Issue
Block a user