Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix bug where person avatar gets changed

laurenspriem3cb57fe513e5
diff --git a/mobile/apps/photos/lib/services/faces_timeline/faces_timeline_service.dart b/mobile/apps/photos/lib/services/faces_timeline/faces_timeline_service.dart
index ae356f7276..288f76fbca 100644
--- a/mobile/apps/photos/lib/services/faces_timeline/faces_timeline_service.dart
+++ b/mobile/apps/photos/lib/services/faces_timeline/faces_timeline_service.dart
@@ -412,7 +412,6 @@ class FacesTimelineService {
file,
selectedFaces,
useFullFile: true,
- personOrClusterID: personId,
useTempCache: false,
);
} catch (error, stackTrace) {
diff --git a/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_banner.dart b/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_banner.dart
index 95c2cb42fe..b3d6bd18b3 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_banner.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_banner.dart
@@ -330,7 +330,6 @@ class _FacesTimelineBannerSectionState
file,
[face],
useFullFile: true,
- personOrClusterID: widget.person.remoteID,
useTempCache: false,
);
final Uint8List? bytes = cropMap?[face.faceID];
diff --git a/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_page.dart b/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_page.dart
index 88ad088979..30abedfb94 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/faces_timeline_page.dart
@@ -281,13 +281,12 @@ class _FacesTimelinePageState extends State<FacesTimelinePage>
);
if (face != null) {
try {
- final cropMap = await getCachedFaceCrops(
- file,
- [face],
- useFullFile: true,
- personOrClusterID: widget.person.remoteID,
- useTempCache: false,
- );
+ final cropMap = await getCachedFaceCrops(
+ file,
+ [face],
+ useFullFile: true,
+ useTempCache: false,
+ );
final Uint8List? bytes = cropMap?[face.faceID];
if (bytes != null && bytes.isNotEmpty) {
image = MemoryImage(bytes);