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

@@ -53,6 +53,7 @@ import { senderCertificateService } from './services/senderCertificate';
import { GROUP_CREDENTIALS_KEY } from './services/groupCredentialFetcher';
import * as KeyboardLayout from './services/keyboardLayout';
import * as StorageService from './services/storage';
import { optimizeFTS } from './services/ftsOptimizer';
import { RoutineProfileRefresher } from './routineProfileRefresh';
import { isOlderThan, toDayMillis } from './util/timestamp';
import { isValidReactionEmoji } from './reactions/isValidReactionEmoji';
@@ -982,6 +983,8 @@ export async function startApp(): Promise<void> {
if (newVersion) {
await window.Signal.Data.cleanupOrphanedAttachments();
optimizeFTS();
drop(window.Signal.Data.ensureFilePermissions());
}