Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 3593eb3

Browse files
committed
fix(notifications): enable in-app notifications config was inversed
1 parent f8dca60 commit 3593eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/firebase/messaging.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class LunaFirebaseMessaging {
7979
/// This listens on [FirebaseMessaging.onMessage], where the application must be open and in the foreground.
8080
StreamSubscription<RemoteMessage> registerOnMessageListener() {
8181
return onMessage.listen((message) {
82-
if (LunaSeaDatabase.ENABLE_IN_APP_NOTIFICATIONS.read()) return;
82+
if (!LunaSeaDatabase.ENABLE_IN_APP_NOTIFICATIONS.read()) return;
8383

8484
LunaModule? module = LunaModule.fromKey(message.data['module']);
8585
showLunaSnackBar(

0 commit comments

Comments
 (0)