diff --git a/lib/ui/shared_collections_gallery.dart b/lib/ui/shared_collections_gallery.dart index a07bcdee5..a2cb52c24 100644 --- a/lib/ui/shared_collections_gallery.dart +++ b/lib/ui/shared_collections_gallery.dart @@ -7,7 +7,7 @@ import 'package:photos/core/configuration.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/collections_db.dart'; import 'package:photos/db/files_db.dart'; -import 'package:photos/events/remote_sync_event.dart'; +import 'package:photos/events/collection_updated_event.dart'; import 'package:photos/models/collection_items.dart'; import 'package:photos/ui/common_elements.dart'; import 'package:photos/ui/loading_widget.dart'; @@ -24,14 +24,12 @@ class SharedCollectionGallery extends StatefulWidget { class _SharedCollectionGalleryState extends State { Logger _logger = Logger("SharedCollectionGallery"); - StreamSubscription _subscription; + StreamSubscription _subscription; @override void initState() { - _subscription = Bus.instance.on().listen((event) { - if (event.success) { - setState(() {}); - } + _subscription = Bus.instance.on().listen((event) { + setState(() {}); }); super.initState(); }