enable autopay, change parsing

pull/471/head
Believethehype 2023-06-26 11:57:31 +02:00
rodzic 58600e13a8
commit f6913663d1
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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