From 0fdba02e0785d62ded4624745de713a76875a85e Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 3 Feb 2020 16:23:42 +0000 Subject: [PATCH] ElectronPlatform: Add the indexSize method. Port https://github.com/vector-im/riot-web/pull/11529 --- src/electron-main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/electron-main.js b/src/electron-main.js index 901f863..a23a04b 100644 --- a/src/electron-main.js +++ b/src/electron-main.js @@ -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 {