ElectronPlatform: Add the ability to load file events from the event index

Port https://github.com/vector-im/riot-web/pull/11907
This commit is contained in:
David Baker 2020-02-03 16:21:35 +00:00
parent a3021fce0a
commit ab91a311c4

View File

@ -425,6 +425,18 @@ ipcMain.on('seshat', async function(ev, payload) {
}
break;
case 'loadFileEvents':
if (eventIndex === null) ret = [];
else {
try {
ret = await eventIndex.loadFileEvents(args[0]);
} catch (e) {
sendError(payload.id, e);
return;
}
}
break;
case 'loadCheckpoints':
if (eventIndex === null) ret = [];
else {