forked from matrix/element-web
Merge branch 'poljar/seshat-ui' into develop
This commit is contained in:
commit
7aff020d4d
|
@ -346,6 +346,18 @@ ipcMain.on('seshat', async function(ev, payload) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'getStats':
|
||||||
|
if (eventIndex === null) ret = 0;
|
||||||
|
else {
|
||||||
|
try {
|
||||||
|
ret = await eventIndex.getStats();
|
||||||
|
} catch (e) {
|
||||||
|
sendError(payload.id, e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case 'removeCrawlerCheckpoint':
|
case 'removeCrawlerCheckpoint':
|
||||||
if (eventIndex === null) ret = false;
|
if (eventIndex === null) ret = false;
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -156,6 +156,10 @@ class SeshatIndexManager extends BaseEventIndexManager {
|
||||||
return this._ipcCall('closeEventIndex');
|
return this._ipcCall('closeEventIndex');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getStats(): Promise<> {
|
||||||
|
return this._ipcCall('getStats');
|
||||||
|
}
|
||||||
|
|
||||||
async deleteEventIndex(): Promise<> {
|
async deleteEventIndex(): Promise<> {
|
||||||
return this._ipcCall('deleteEventIndex');
|
return this._ipcCall('deleteEventIndex');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue