File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/src/main/java/to/bitkit/ui/screens/wallets Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ class HomeViewModel @Inject constructor(
194194 }
195195
196196 fun removeSuggestion (suggestion : Suggestion ) {
197- // TODO HANDLE TRANSFER
197+ // TODO HANDLE TRANSFER
198198 viewModelScope.launch {
199199 settingsStore.addDismissedSuggestion(suggestion)
200200 }
@@ -265,6 +265,11 @@ class HomeViewModel @Inject constructor(
265265 balanceState.totalLightningSats > 0uL -> { // With Lightning
266266 listOfNotNull(
267267 Suggestion .BACK_UP .takeIf { ! settings.backupVerified },
268+ // The previous list had LIGHTNING_SETTING_UP and the current don't
269+ Suggestion .LIGHTNING_READY .takeIf {
270+ Suggestion .LIGHTNING_SETTING_UP in _uiState .value.suggestions
271+ && transfers.all { it.type != TransferType .TO_SPENDING }
272+ },
268273 Suggestion .LIGHTNING_SETTING_UP .takeIf { transfers.any { it.type == TransferType .TO_SPENDING } },
269274 Suggestion .TRANSFER_CLOSING_CHANNEL .takeIf { transfers.any { it.type == TransferType .COOP_CLOSE } },
270275 Suggestion .TRANSFER_PENDING .takeIf { transfers.any { it.type == TransferType .FORCE_CLOSE } },
You can’t perform that action at this time.
0 commit comments