[mob]Fix refresh bug in all sections for people

This commit is contained in:
Neeraj Gupta 2024-05-02 11:56:20 +05:30
parent ca3172c33e
commit 9ecd406e56

View file

@ -6,6 +6,7 @@ import "package:photos/core/event_bus.dart";
import "package:photos/events/collection_updated_event.dart";
import "package:photos/events/event.dart";
import "package:photos/events/location_tag_updated_event.dart";
import "package:photos/events/people_changed_event.dart";
import "package:photos/generated/l10n.dart";
import "package:photos/models/collection/collection.dart";
import "package:photos/models/collection/collection_items.dart";
@ -279,6 +280,8 @@ extension SectionTypeExtensions on SectionType {
return [Bus.instance.on<LocationTagUpdatedEvent>()];
case SectionType.album:
return [Bus.instance.on<CollectionUpdatedEvent>()];
case SectionType.face:
return [Bus.instance.on<PeopleChangedEvent>()];
default:
return [];
}