From 9ca222300ea8cdce57cba5e00a07e5587ae029b3 Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Fri, 5 Feb 2021 19:26:51 +0530 Subject: [PATCH] Publish the SubscriptionPurchasedEvent if a user has subscribed --- lib/ui/password_reentry_page.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ui/password_reentry_page.dart b/lib/ui/password_reentry_page.dart index 44e2a7648..a7ec6a362 100644 --- a/lib/ui/password_reentry_page.dart +++ b/lib/ui/password_reentry_page.dart @@ -2,6 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:logging/logging.dart'; import 'package:photos/core/configuration.dart'; +import 'package:photos/core/event_bus.dart'; +import 'package:photos/events/subscription_purchased_event.dart'; import 'package:photos/services/billing_service.dart'; import 'package:photos/ui/common_elements.dart'; import 'package:photos/ui/subscription_page.dart'; @@ -97,6 +99,7 @@ class _PasswordReentryPageState extends State { ), ); } else { + Bus.instance.fire(SubscriptionPurchasedEvent()); Navigator.of(context) .popUntil((route) => route.isFirst); }