enable autopay, change parsing

This commit is contained in:
Believethehype
2023-06-26 11:57:31 +02:00
parent 58600e13a8
commit f6913663d1
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
}

View File

@@ -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