mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
BaseEventIndexManager: Add support to read/write user versions.
This commit is contained in:
parent
a816f494e4
commit
9f9f24c624
@ -144,6 +144,29 @@ export default abstract class BaseEventIndexManager {
|
||||
throw new Error("Unimplemented");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the user version of the database.
|
||||
* @return {Promise<number>} A promise that will resolve to the user stored
|
||||
* version number.
|
||||
*/
|
||||
async getUserVersion(): Promise<number> {
|
||||
throw new Error("Unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the user stored version to the given version number.
|
||||
*
|
||||
* @param {number} version The new version that should be stored in the
|
||||
* database.
|
||||
*
|
||||
* @return {Promise<void>} A promise that will resolve once the new version
|
||||
* is stored.
|
||||
*/
|
||||
async setUserVersion(version: number): Promise<void> {
|
||||
throw new Error("Unimplemented");
|
||||
}
|
||||
|
||||
/**
|
||||
* Commit the previously queued up events to the index.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user