Skip to content

Commit d0b7b20

Browse files
ovitrifclaude
andcommitted
fix: remove default bolt11 invoice description
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5619875 commit d0b7b20

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/src/main/java/to/bitkit/env/Env.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ internal object Env {
4343

4444
const val FILE_PROVIDER_AUTHORITY = "${BuildConfig.APPLICATION_ID}.fileprovider"
4545
const val SUPPORT_EMAIL = "support@synonym.to"
46-
const val DEFAULT_INVOICE_MESSAGE = "Bitkit"
4746
const val PIN_LENGTH = 4
4847
const val PIN_ATTEMPTS = 8
4948

app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class BlocktankRepo @Inject constructor(
195195

196196
suspend fun createCjit(
197197
amountSats: ULong,
198-
description: String = Env.DEFAULT_INVOICE_MESSAGE,
198+
description: String = "",
199199
): Result<IcJitEntry> = withContext(bgDispatcher) {
200200
runCatching {
201201
if (coreService.isGeoBlocked()) throw ServiceError.GeoBlocked()

app/src/main/java/to/bitkit/repositories/WalletRepo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class WalletRepo @Inject constructor(
270270
val newBip21 = buildBip21Url(
271271
bitcoinAddress = address,
272272
amountSats = amountSats,
273-
message = message.ifBlank { Env.DEFAULT_INVOICE_MESSAGE },
273+
message = message,
274274
lightningInvoice = getBolt11(),
275275
)
276276
setBip21(newBip21)
@@ -386,7 +386,7 @@ class WalletRepo @Inject constructor(
386386
fun buildBip21Url(
387387
bitcoinAddress: String,
388388
amountSats: ULong? = null,
389-
message: String = Env.DEFAULT_INVOICE_MESSAGE,
389+
message: String = "",
390390
lightningInvoice: String = "",
391391
): String {
392392
return Bip21Utils.buildBip21Url(

app/src/main/java/to/bitkit/services/LightningService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ class LightningService @Inject constructor(
467467
suspend fun receive(sat: ULong? = null, description: String, expirySecs: UInt = 3600u): String {
468468
val node = this.node ?: throw ServiceError.NodeNotSetup()
469469

470-
val message = description.ifBlank { Env.DEFAULT_INVOICE_MESSAGE }
470+
val message = description
471471

472472
return ServiceQueue.LDK.background {
473473
val bolt11Invoice: Bolt11Invoice = if (sat != null) {

0 commit comments

Comments
 (0)