Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix state reload issue

laurenspriemad035d18c97d
diff --git a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
index 8aa3da6678..612271d12e 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/result/people_section_all_page.dart
@@ -429,6 +429,18 @@ class _PeopleSectionAllWidgetState extends State<PeopleSectionAllWidget> {
setState(() {
_suggestionReloadToken++;
});
+ } else if (event is PeopleChangedEvent &&
+ event.type == PeopleEventType.syncDone) {
+ _peopleReloadDebouncer.run(() async {
+ if (!mounted) {
+ return;
+ }
+ setState(() {
+ _isInitialLoad = false;
+ _isLoaded = false;
+ sectionData = getResults();
+ });
+ });
} else {
_peopleReloadDebouncer.run(() async {
if (!mounted) {