mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
BaseEventIndexManager: Add a method to perform runtime checks for indexing support.
This commit is contained in:
parent
ab7f34b45a
commit
c33f5ba0ca
@ -75,6 +75,19 @@ export interface HistoricEvent {
|
||||
* Instances of this class are provided by the application.
|
||||
*/
|
||||
export default class BaseEventIndexManager {
|
||||
/**
|
||||
* Does our EventIndexManager support event indexing.
|
||||
*
|
||||
* If an EventIndexManager imlpementor has runtime dependencies that
|
||||
* optionally enable event indexing they may override this method to perform
|
||||
* the necessary runtime checks here.
|
||||
*
|
||||
* @return {Promise} A promise that will resolve to true if event indexing
|
||||
* is supported, false otherwise.
|
||||
*/
|
||||
async supportsEventIndexing(): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Initialize the event index for the given user.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user