kopia lustrzana https://github.com/vitorpamplona/amethyst
enable autopay, change parsing
rodzic
58600e13a8
commit
f6913663d1
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue