π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove social overlay event refresh
ashilkn0cb783cefe68
diff --git a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dartindex e751ccfd6e..88877ddbdc 100644--- a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart+++ b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart@@ -6,8 +6,6 @@ import "package:ente_components/theme/text_styles.dart" as component;import "package:ente_icons/ente_icons.dart";import "package:flutter/material.dart";import "package:logging/logging.dart";-import "package:photos/core/event_bus.dart";-import "package:photos/events/social_data_updated_event.dart";import "package:photos/generated/l10n.dart";import "package:photos/models/api/collection/user.dart";import "package:photos/models/collection/collection.dart";@@ -76,9 +74,6 @@ class FileSocialOverlay extends StatefulWidget {}class _FileSocialOverlayState extends State<FileSocialOverlay> {- late final StreamSubscription<SocialDataUpdatedEvent>- _socialDataUpdatedSubscription;-List<int> _eligibleSharedCollectionIDs = const [];bool _hasLiked = false;int _commentCount = 0;@@ -90,9 +85,6 @@ class _FileSocialOverlayState extends State<FileSocialOverlay> {@overridevoid initState() {super.initState();- _socialDataUpdatedSubscription = Bus.instance- .on<SocialDataUpdatedEvent>()- .listen((_) => unawaited(_refreshSocialState()));unawaited(_refreshSocialState());}@@ -105,12 +97,6 @@ class _FileSocialOverlayState extends State<FileSocialOverlay> {}}- @override- void dispose() {- _socialDataUpdatedSubscription.cancel();- super.dispose();- }-void _clearSocialState() {_eligibleSharedCollectionIDs = const [];_hasLiked = false;