From b90bcdc225cc7df3cf28cc9aff3fdb1c9d0f1900 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 15 Aug 2023 12:03:15 +0200 Subject: [PATCH] fix(neon): Fix not receiving push notifications Signed-off-by: jld3103 --- packages/neon/neon/lib/src/blocs/push_notifications.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/neon/neon/lib/src/blocs/push_notifications.dart b/packages/neon/neon/lib/src/blocs/push_notifications.dart index 6bde33b2..7b5e0134 100644 --- a/packages/neon/neon/lib/src/blocs/push_notifications.dart +++ b/packages/neon/neon/lib/src/blocs/push_notifications.dart @@ -34,6 +34,8 @@ class PushNotificationsBloc extends Bloc implements PushNotificationsBlocEvents, unawaited(UnifiedPush.getDistributors().then(_globalOptions.updateDistributors)); _globalOptions.pushNotificationsEnabled.addListener(_pushNotificationsEnabledListener); + // Call the listener to update everything + unawaited(_pushNotificationsEnabledListener()); } }