mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
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:
parent
a3021fce0a
commit
ab91a311c4
@ -425,6 +425,18 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
}
|
}
|
||||||
break;
|
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':
|
case 'loadCheckpoints':
|
||||||
if (eventIndex === null) ret = [];
|
if (eventIndex === null) ret = [];
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user