From 55c1f01f4c8feee6d20c48269791bdd96017c6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 17 Jun 2020 17:18:44 +0200 Subject: [PATCH] ElectronPlatform: Add support to set and get the index user version. --- src/vector/platform/ElectronPlatform.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index a0677264..02069c20 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -193,6 +193,14 @@ class SeshatIndexManager extends BaseEventIndexManager { return this._ipcCall('getStats'); } + async getUserVersion(): Promise { + return this._ipcCall('getUserVersion'); + } + + async setUserVersion(version: number): Promise { + return this._ipcCall('setUserVersion', version); + } + async deleteEventIndex(): Promise { return this._ipcCall('deleteEventIndex'); }