forked from matrix/element-web
ElectronPlatform: Add support to set and get the index user version.
This commit is contained in:
parent
59d37ec94b
commit
55c1f01f4c
|
@ -193,6 +193,14 @@ class SeshatIndexManager extends BaseEventIndexManager {
|
||||||
return this._ipcCall('getStats');
|
return this._ipcCall('getStats');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async getUserVersion(): Promise<number> {
|
||||||
|
return this._ipcCall('getUserVersion');
|
||||||
|
}
|
||||||
|
|
||||||
|
async setUserVersion(version: number): Promise<void> {
|
||||||
|
return this._ipcCall('setUserVersion', version);
|
||||||
|
}
|
||||||
|
|
||||||
async deleteEventIndex(): Promise<void> {
|
async deleteEventIndex(): Promise<void> {
|
||||||
return this._ipcCall('deleteEventIndex');
|
return this._ipcCall('deleteEventIndex');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue