From b39410432ab2c274aaa02f683aa2658e4cb9b108 Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Fri, 16 Aug 2024 11:12:20 -0300 Subject: [PATCH] Only show distributors not installed message if notification type is not direct connection --- .../greenart7c3/nostrsigner/service/PushNotificationUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/free/java/com/greenart7c3/nostrsigner/service/PushNotificationUtils.kt b/app/src/free/java/com/greenart7c3/nostrsigner/service/PushNotificationUtils.kt index 602238b3..6725883d 100644 --- a/app/src/free/java/com/greenart7c3/nostrsigner/service/PushNotificationUtils.kt +++ b/app/src/free/java/com/greenart7c3/nostrsigner/service/PushNotificationUtils.kt @@ -30,6 +30,7 @@ import com.greenart7c3.nostrsigner.NostrSigner import com.greenart7c3.nostrsigner.R import com.greenart7c3.nostrsigner.database.LogEntity import com.greenart7c3.nostrsigner.ui.AccountStateViewModel +import com.greenart7c3.nostrsigner.ui.NotificationType import kotlinx.coroutines.CancellationException import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.Dispatchers @@ -66,7 +67,7 @@ object PushNotificationUtils { ), ) } - if (!NostrSigner.getInstance().settings.pushServerMessage) { + if (!NostrSigner.getInstance().settings.pushServerMessage && NostrSigner.getInstance().settings.notificationType != NotificationType.DIRECT) { accountState?.toast( title = NostrSigner.getInstance().getString(R.string.push_server), message = NostrSigner.getInstance().getString(R.string.no_distributors_found),