Skip to content

Commit 8329915

Browse files
committed
fix: activity list update
1 parent d764cf0 commit 8329915

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,9 +820,7 @@ class LightningRepo @Inject constructor(
820820
return isRunning && lightningService.canReceive()
821821
}
822822

823-
fun separateTrustedChannels(
824-
channels: List<ChannelDetails>,
825-
): Pair<List<ChannelDetails>, List<ChannelDetails>> = lightningService.separateTrustedChannels(channels)
823+
fun separateTrustedChannels(channels: List<ChannelDetails>) = lightningService.separateTrustedChannels(channels)
826824

827825
suspend fun registerForNotifications(token: String? = null) = executeWhenNodeRunning("registerForNotifications") {
828826
runCatching {

app/src/main/java/to/bitkit/viewmodels/ActivityListViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class ActivityListViewModel @Inject constructor(
8888
activityRepo.activitiesChanged,
8989
) { debouncedSearch, filtersWithoutSearch, _ ->
9090
fetchFilteredActivities(filtersWithoutSearch.copy(searchText = debouncedSearch))
91-
}.collect {
92-
_filteredActivities.update { it }
91+
}.collect { activities ->
92+
_filteredActivities.update { activities }
9393
}
9494
}
9595

0 commit comments

Comments
 (0)