We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4d37b commit 2830f80Copy full SHA for 2830f80
1 file changed
app/src/main/java/to/bitkit/repositories/BlocktankRepo.kt
@@ -101,11 +101,10 @@ class BlocktankRepo @Inject constructor(
101
return@withContext runCatching {
102
val channel = lightningService.channels?.find { it.channelId == channelId }
103
104
- getOrders(
105
- orderIds = null,
106
- filter = null,
107
- refresh = true
108
- ).any { order -> order.channel?.shortChannelId == channel?.shortChannelId.toString() }
+ _blocktankState.value.cjitEntries.any { order ->
+ order.channel?.shortChannelId?.toULongOrNull() == channel?.shortChannelId &&
+ channel?.shortChannelId != null
+ }
109
}.getOrDefault(false)
110
}
111
0 commit comments