[mob] Fix indexing trigger for iOS

This commit is contained in:
Neeraj Gupta 2024-05-18 05:31:20 +05:30
parent ea587b6ccd
commit b00ee96dde

View file

@ -142,7 +142,7 @@ class FaceMlService {
}
});
} else {
if (!kDebugMode) {
if (kDebugMode) {
unawaited(indexAllImages());
}
}
@ -155,7 +155,7 @@ class FaceMlService {
void listenIndexOnDiffSync() {
Bus.instance.on<DiffSyncCompleteEvent>().listen((event) async {
if (LocalSettings.instance.isFaceIndexingEnabled == false || kDebugMode) {
if (LocalSettings.instance.isFaceIndexingEnabled == false) {
return;
}
// [neeraj] intentional delay in starting indexing on diff sync, this gives time for the user