ElectronPlatform: Add the indexSize method.

Port https://github.com/vector-im/riot-web/pull/11529
This commit is contained in:
David Baker 2020-02-03 16:23:42 +00:00
parent ab91a311c4
commit 0fdba02e07

View File

@ -401,6 +401,18 @@ ipcMain.on('seshat', async function(ev, payload) {
}
break;
case 'getStats':
if (eventIndex === null) ret = 0;
else {
try {
ret = await eventIndex.getStats();
} catch (e) {
sendError(payload.id, e);
return;
}
}
break;
case 'removeCrawlerCheckpoint':
if (eventIndex === null) ret = false;
else {