[mob] Fix remove from cluster & provide option to delete files from cluster view (#2858)

## Description

## Tests
This commit is contained in:
Neeraj Gupta
2024-08-24 13:54:41 +05:30
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -82,13 +82,13 @@ extension GalleyTypeExtension on GalleryType {
case GalleryType.locationTag:
case GalleryType.quickLink:
case GalleryType.peopleTag:
case GalleryType.cluster:
return true;
case GalleryType.trash:
case GalleryType.archive:
case GalleryType.hiddenSection:
case GalleryType.hiddenOwnedCollection:
case GalleryType.sharedCollection:
case GalleryType.cluster:
return false;
}
}

View File

@@ -263,8 +263,8 @@ class FaceClusteringService {
Future<ClusteringResult> predictWithinClusterComputer(
Map<String, Uint8List> input, {
Map<int, int>? fileIDToCreationTime,
Map<int, (Uint8List, int)> oldClusterSummaries =
const <int, (Uint8List, int)>{},
Map<String, (Uint8List, int)> oldClusterSummaries =
const <String, (Uint8List, int)>{},
double distanceThreshold = kRecommendedDistanceThreshold,
}) async {
_logger.info(
@@ -366,7 +366,7 @@ class FaceClusteringService {
Future<ClusteringResult> predictCompleteComputer(
Map<String, Uint8List> input, {
Map<int, int>? fileIDToCreationTime,
required Map<int, (Uint8List, int)> oldClusterSummaries,
required Map<String, (Uint8List, int)> oldClusterSummaries,
double distanceThreshold = kRecommendedDistanceThreshold,
double mergeThreshold = 0.30,
}) async {