File tree Expand file tree Collapse file tree
app/src/main/java/com/getcode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ data class HomeScreen(
4949
5050 @Composable
5151 override fun Content () {
52- val vm = getActivityScopedViewModel<HomeViewModel >()
53- val tlvm = getActivityScopedViewModel<TopLevelViewModel >()
52+ val vm = getViewModel<HomeViewModel >()
5453
5554 startupLog(" home rendered" )
5655 HomeScreen (vm, cashLink, requestPayload)
@@ -67,13 +66,6 @@ data class HomeScreen(
6766 }
6867 }
6968 }
70-
71- LaunchedEffect (tlvm) {
72- tlvm.eventFlow
73- .filterIsInstance<TopLevelViewModel .Event .LogoutCompleted >()
74- .onEach { vm.reset() }
75- .launchIn(this )
76- }
7769 }
7870}
7971
Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ class HomeViewModel @Inject constructor(
218218 },
219219 onFailure = {
220220 Timber .e(t = it, message = " Auto airdrop failed" )
221+ prefRepository.set(PrefsBool .IS_ELIGIBLE_GET_FIRST_KIN_AIRDROP , false )
221222 }
222223 )
223224 .launchIn(viewModelScope)
@@ -294,10 +295,6 @@ class HomeViewModel @Inject constructor(
294295 }
295296 }
296297
297- fun reset () {
298- uiFlow.update { HomeUiModel () }
299- }
300-
301298 fun onCameraPermissionChanged (isGranted : Boolean ) {
302299 uiFlow.update { it.copy(isCameraPermissionGranted = isGranted) }
303300 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ object Versions {
6767
6868 const val markwon = " 4.6.2"
6969 const val timber = " 5.0.1"
70- const val voyager = " 1.0.0-rc10 "
70+ const val voyager = " 1.0.0"
7171}
7272
7373object Classpath {
You can’t perform that action at this time.
0 commit comments