mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
ElectronPlatform: Add the indexSize method.
Port https://github.com/vector-im/riot-web/pull/11529
This commit is contained in:
parent
ab91a311c4
commit
0fdba02e07
@ -401,6 +401,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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user