Skip to content

Commit

Permalink
fix(notifications): enable in-app notifications config was inversed
Browse files Browse the repository at this point in the history
  • Loading branch information
JagandeepBrar committed Sep 1, 2022
1 parent f8dca60 commit 3593eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/firebase/messaging.dart
Expand Up @@ -79,7 +79,7 @@ class LunaFirebaseMessaging {
/// This listens on [FirebaseMessaging.onMessage], where the application must be open and in the foreground.
StreamSubscription<RemoteMessage> registerOnMessageListener() {
return onMessage.listen((message) {
if (LunaSeaDatabase.ENABLE_IN_APP_NOTIFICATIONS.read()) return;
if (!LunaSeaDatabase.ENABLE_IN_APP_NOTIFICATIONS.read()) return;

LunaModule? module = LunaModule.fromKey(message.data['module']);
showLunaSnackBar(
Expand Down

0 comments on commit 3593eb3

Please sign in to comment.