[mob][photos] Fix fix trigger for iOS

This commit is contained in:
laurenspriem 2024-05-18 16:54:46 +05:30
parent 7263c45300
commit bd28254021

View file

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