From 32f7b199284e0212eab3409e86b579e23bb13bc6 Mon Sep 17 00:00:00 2001 From: klima7 Date: Sat, 18 Dec 2021 12:06:37 +0100 Subject: [PATCH] Updating token every launch removed --- .../client/features/splash/SplashViewModel.kt | 17 +---------------- .../expert/features/splash/SplashViewModel.kt | 17 +---------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/client/src/main/java/com/klima7/services/client/features/splash/SplashViewModel.kt b/client/src/main/java/com/klima7/services/client/features/splash/SplashViewModel.kt index 85362196..b2896b00 100644 --- a/client/src/main/java/com/klima7/services/client/features/splash/SplashViewModel.kt +++ b/client/src/main/java/com/klima7/services/client/features/splash/SplashViewModel.kt @@ -1,22 +1,7 @@ package com.klima7.services.client.features.splash -import androidx.lifecycle.viewModelScope -import com.klima7.services.client.messaging.UpdateTokenUC import com.klima7.services.common.components.splash.BaseSplashViewModel -import com.klima7.services.common.core.None class SplashViewModel( getCurrentClientStateUC: GetCurrentClientStateUC, -): BaseSplashViewModel(getCurrentClientStateUC) { - - override fun started(offerId: String?) { - super.started(offerId) - UpdateTokenUC().start( - viewModelScope, - None(), - {}, - {} - ) - } - -} +): BaseSplashViewModel(getCurrentClientStateUC) diff --git a/expert/src/main/java/com/klima7/services/expert/features/splash/SplashViewModel.kt b/expert/src/main/java/com/klima7/services/expert/features/splash/SplashViewModel.kt index bf702087..94a0b595 100644 --- a/expert/src/main/java/com/klima7/services/expert/features/splash/SplashViewModel.kt +++ b/expert/src/main/java/com/klima7/services/expert/features/splash/SplashViewModel.kt @@ -1,22 +1,7 @@ package com.klima7.services.expert.features.splash -import androidx.lifecycle.viewModelScope import com.klima7.services.common.components.splash.BaseSplashViewModel -import com.klima7.services.common.core.None -import com.klima7.services.expert.messaging.UpdateTokenUC class SplashViewModel( getCurrentExpertStateUC: GetCurrentExpertStateUC -): BaseSplashViewModel(getCurrentExpertStateUC) { - - override fun started(offerId: String?) { - super.started(offerId) - UpdateTokenUC().start( - viewModelScope, - None(), - {}, - {} - ) - } - -} +): BaseSplashViewModel(getCurrentExpertStateUC)