Skip to content

Commit

Permalink
ETH-930 - disable svl deeplink handling
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardmaximovich committed Feb 12, 2024
1 parent 98b9311 commit ff679ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.onCompletion
import org.p2p.wallet.R
import org.p2p.wallet.common.feature_toggles.toggles.remote.SendViaLinkFeatureToggle
import org.p2p.wallet.intercom.IntercomDeeplinkManager
import org.p2p.wallet.notification.NotificationType
import org.p2p.wallet.root.RootActivity
Expand All @@ -25,7 +26,8 @@ class AppDeeplinksManager(
private val context: Context,
private val swapDeeplinkHandler: SwapDeeplinkHandler,
private val referralDeeplinkHandler: ReferralDeeplinkHandler,
private val intercomDeeplinkManager: IntercomDeeplinkManager
private val intercomDeeplinkManager: IntercomDeeplinkManager,
private val sendViaLinkFeatureToggle: SendViaLinkFeatureToggle
) {
companion object {
const val NOTIFICATION_TYPE = "eventType"
Expand Down Expand Up @@ -114,6 +116,8 @@ class AppDeeplinksManager(
* or keyapp://t/... if came from website
*/
private fun isTransferDeeplink(data: Uri): Boolean {
if (!sendViaLinkFeatureToggle.isFeatureEnabled) return false

val transferHostMain = context.getString(R.string.transfer_app_host)
val transferSchemeMain = "https"
val transferHostAlternative = "t"
Expand Down

0 comments on commit ff679ee

Please sign in to comment.