Skip to content

armgit / ente

Public Imported from GitHub
0

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

Specify value key

laurenspriem2449c6d59264
diff --git a/mobile/lib/ui/viewer/people/person_row_item.dart b/mobile/lib/ui/viewer/people/person_row_item.dart
index 36d0f5e272..0b86786621 100644
--- a/mobile/lib/ui/viewer/people/person_row_item.dart
+++ b/mobile/lib/ui/viewer/people/person_row_item.dart
@@ -33,7 +33,10 @@ class PersonGridItem extends StatelessWidget {
borderRadius: BorderRadius.circular(80),
),
),
- child: PersonFaceWidget(personId: person.remoteID),
+ child: PersonFaceWidget(
+ personId: person.remoteID,
+ key: ValueKey(person.remoteID),
+ ),
),
),
const SizedBox(height: 4),
diff --git a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
index a1294a37dc..fa9559bbdd 100644
--- a/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
+++ b/mobile/lib/ui/viewer/search/result/people_section_all_page.dart
@@ -310,7 +310,7 @@ class FaceSearchResult extends StatelessWidget {
clusterID: params[kClusterParamId],
key: params.containsKey(kPersonWidgetKey)
? ValueKey(params[kPersonWidgetKey])
- : null,
+ : ValueKey(params[kPersonParamID] ?? params[kClusterParamId]),
);
}
}
diff --git a/mobile/lib/ui/viewer/search_tab/people_section.dart b/mobile/lib/ui/viewer/search_tab/people_section.dart
index 5d98322877..2c9eeca9c1 100644
--- a/mobile/lib/ui/viewer/search_tab/people_section.dart
+++ b/mobile/lib/ui/viewer/search_tab/people_section.dart
@@ -385,7 +385,7 @@ class FaceSearchResult extends StatelessWidget {
clusterID: params[kClusterParamId],
key: params.containsKey(kPersonWidgetKey)
? ValueKey(params[kPersonWidgetKey])
- : null,
+ : ValueKey(params[kPersonParamID] ?? params[kClusterParamId]),
);
}
}