mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 21:02:33 +02:00
enable autopay, change parsing
This commit is contained in:
@@ -71,7 +71,7 @@ fun CashuPreview(cashutoken: String, accountViewModel: AccountViewModel) {
|
||||
.padding(vertical = 10.dp),
|
||||
onClick = {
|
||||
runCatching {
|
||||
val url = "https://redeem.cashu.me?token=$cashutoken&lightning=$lnaddress"
|
||||
val url = "https://redeem.cashu.me?token=$cashutoken&lightning=$lnaddress&autopay=true"
|
||||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
|
||||
startActivity(context, intent, null)
|
||||
}
|
||||
|
@@ -284,7 +284,7 @@ private fun RenderWord(
|
||||
WordType.INVOICE
|
||||
} else if (word.startsWith("lnurl", true)) {
|
||||
WordType.WITHDRAW
|
||||
} else if (word.startsWith("cashu", true) && word.endsWith("==", true)) {
|
||||
} else if (word.startsWith("cashuA", true)) {
|
||||
WordType.CASHU
|
||||
} else if (Patterns.EMAIL_ADDRESS.matcher(word).matches()) {
|
||||
WordType.EMAIL
|
||||
|
Reference in New Issue
Block a user