Reenable FTS optimization

This commit is contained in:
Fedor Indutny 2023-09-03 01:03:19 +02:00 committed by Fedor Indutnyy
parent 372d9c2198
commit b6ed789197
10 changed files with 195 additions and 8 deletions

View file

@ -411,6 +411,11 @@ export type GetAllStoriesResultType = ReadonlyArray<
}
>;
export type FTSOptimizationStateType = Readonly<{
steps: number;
done?: boolean;
}>;
export type EditedMessageType = Readonly<{
conversationId: string;
messageId: string;
@ -818,6 +823,10 @@ export type DataInterface = {
getMaxMessageCounter(): Promise<number | undefined>;
getStatisticsForLogging(): Promise<Record<string, string>>;
optimizeFTS: (
state?: FTSOptimizationStateType
) => Promise<FTSOptimizationStateType | undefined>;
};
export type ServerInterface = DataInterface & {