File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/viewmodels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import android.content.Context
55import androidx.compose.runtime.Stable
66import androidx.lifecycle.ViewModel
77import androidx.lifecycle.viewModelScope
8+ import com.synonym.bitkitcore.Scanner
89import dagger.hilt.android.lifecycle.HiltViewModel
910import dagger.hilt.android.qualifiers.ApplicationContext
1011import kotlinx.coroutines.CoroutineDispatcher
1112import kotlinx.coroutines.flow.MutableStateFlow
1213import kotlinx.coroutines.flow.asStateFlow
1314import kotlinx.coroutines.flow.update
1415import kotlinx.coroutines.launch
15- import com.synonym.bitkitcore.Scanner
1616import to.bitkit.di.BgDispatcher
1717import to.bitkit.models.Toast
1818import to.bitkit.repositories.LightningRepo
@@ -100,6 +100,7 @@ class ProbingToolViewModel @Inject constructor(
100100 val lightningParam = decoded.invoice.params?.get(" lightning" ) ? : return @runCatching null
101101 (coreService.decode(lightningParam) as ? Scanner .Lightning )?.invoice?.bolt11
102102 }
103+
103104 else -> null
104105 }
105106 }.getOrNull()
You can’t perform that action at this time.
0 commit comments