π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Guard stale callback state
Neeraj Guptac70a9a0bbfff
diff --git a/mobile/apps/photos/lib/ui/map/map_screen.dart b/mobile/apps/photos/lib/ui/map/map_screen.dartindex bc284d2b61..8c1f127e50 100644--- a/mobile/apps/photos/lib/ui/map/map_screen.dart+++ b/mobile/apps/photos/lib/ui/map/map_screen.dart@@ -154,6 +154,9 @@ class _MapScreenState extends State<MapScreen> {_mapMoveSubscription = receivePort.listen((dynamic message) async {if (message is List<EnteFile>) {if (!message.equals(prevMessage ?? [])) {+ if (visibleImages.isClosed) {+ return;+ }visibleImages.sink.add(message);}diff --git a/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart b/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dartindex 65532477a7..22e6ddd138 100644--- a/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/zoomable_image.dart@@ -291,7 +291,7 @@ class _ZoomableImageState extends State<ZoomableImage> {{if (d.delta.dy > dragSensitivity){- {Navigator.of(context).pop()},+ {unawaited(Navigator.maybePop(context))},}else if (d.delta.dy < (dragSensitivity * -1)){showDetailsSheet(context, widget.photo)},diff --git a/mobile/apps/photos/plugins/ente_cast/lib/src/service.dart b/mobile/apps/photos/plugins/ente_cast/lib/src/service.dartindex 55b39daef9..f69a77177c 100644--- a/mobile/apps/photos/plugins/ente_cast/lib/src/service.dart+++ b/mobile/apps/photos/plugins/ente_cast/lib/src/service.dart@@ -79,9 +79,13 @@ class CastService {debugPrint("send close message for ${session.sessionId}");unawaited(Future(() {- session.sendMessage(CastSession.kNamespaceConnection, {- "type": "CLOSE",- });+ try {+ session.sendMessage(CastSession.kNamespaceConnection, {+ "type": "CLOSE",+ });+ } catch (error) {+ debugPrint("sendMessage failed: $error");+ }}).timeout(const Duration(seconds: 5),onTimeout: () {