Only show distributors not installed message if notification type is not direct connection

This commit is contained in:
greenart7c3
2024-08-16 11:20:37 -03:00
parent d1d9f44307
commit b39410432a
@@ -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),