Skip to content

Commit

Permalink
fix (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
polstianka authored Dec 20, 2024
1 parent 7aeb02e commit 560971b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ class API(
json.put("firebase_token", firebaseToken)
sessionId?.let { json.put("session_id", it) }
json.put("commercial", commercial)
json.put("silent", silent)
json.put("silent", !silent)
val data = json.toString().replace("\\/", "/").trim()

val headers = ArrayMap<String, String>().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import androidx.core.view.WindowInsetsCompat
import androidx.core.view.updatePadding
import com.tonapps.blockchain.ton.extensions.base64
import com.tonapps.extensions.currentTimeSeconds
import com.tonapps.extensions.getStringValue
import com.tonapps.extensions.toUriOrNull
import com.tonapps.tonkeeper.App
import com.tonapps.tonkeeper.core.AnalyticsHelper
Expand Down Expand Up @@ -399,9 +400,9 @@ class RootActivity: BaseWalletActivity() {
}

private fun handleIntent(intent: Intent) {
val uri = intent.data
val uri = intent.data ?: intent.getStringExtra("link")?.toUriOrNull()
val extras = intent.extras
val dappDeepLink = extras?.getString("dapp_deeplink")?.toUriOrNull()
val dappDeepLink = extras?.getStringValue("dapp_deeplink")?.toUriOrNull()
if (dappDeepLink != null) {
viewModel.openDApp(dappDeepLink)
} else if (uri != null) {
Expand Down

0 comments on commit 560971b

Please sign in to comment.