From f4c1e920a15e55a66a1a515ceb45b4bb7075ff4e Mon Sep 17 00:00:00 2001 From: Oleg Koretsky Date: Wed, 27 Nov 2024 16:12:48 +0200 Subject: [PATCH] Fix incorrect check if CIS-2 tx notifications are on --- CHANGELOG.md | 3 ++- .../core/notifications/TransactionNotificationsManager.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c44324b..d2122c01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,8 @@ - Crash on launch when Google Play Services is disabled - Inconsistent transaction fee for invoke smart contract -- Crashing when first launching the app offline +- Crashing when first launching the app offline +- Not receiving CIS-2 transaction notifications when they are disabled for CCD transactions ### Changed diff --git a/app/src/main/java/com/concordium/wallet/core/notifications/TransactionNotificationsManager.kt b/app/src/main/java/com/concordium/wallet/core/notifications/TransactionNotificationsManager.kt index bc468aff..a656cd7f 100644 --- a/app/src/main/java/com/concordium/wallet/core/notifications/TransactionNotificationsManager.kt +++ b/app/src/main/java/com/concordium/wallet/core/notifications/TransactionNotificationsManager.kt @@ -35,7 +35,7 @@ class TransactionNotificationsManager( get() = areNotificationsEnabled && notificationsPreferences.areCcdTxNotificationsEnabled private val areCis2TxNotificationsEnabled: Boolean - get() = areNotificationsEnabled && notificationsPreferences.areCcdTxNotificationsEnabled + get() = areNotificationsEnabled && notificationsPreferences.areCis2TxNotificationsEnabled @SuppressLint("MissingPermission") fun notifyCcdTransaction(