Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Jan 7, 2025
1 parent 990d86d commit 5eba8b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ package com.wire.android.ui.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.wire.android.appLogger
import com.wire.kalium.logic.feature.e2ei.CertificateRevocationListCheckWorker
import com.wire.kalium.logic.feature.e2ei.CheckCrlRevocationListUseCase
import com.wire.kalium.logic.feature.e2ei.SyncCertificateRevocationListUseCase
import com.wire.kalium.logic.feature.e2ei.usecase.ObserveCertificateRevocationForSelfClientUseCase
import com.wire.kalium.logic.feature.featureConfig.FeatureFlagsSyncWorker
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/kotlin/com/wire/android/ui/home/HomeViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import com.wire.android.model.ImageAsset.UserAvatarAsset
import com.wire.android.navigation.SavedStateViewModel
import com.wire.android.util.ui.WireSessionImageLoader
import com.wire.kalium.logic.feature.client.NeedsToRegisterClientUseCase
import com.wire.kalium.logic.feature.e2ei.CertificateRevocationListCheckWorker
import com.wire.kalium.logic.feature.user.GetSelfUserUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.first
Expand All @@ -45,17 +44,13 @@ class HomeViewModel @Inject constructor(
private val needsToRegisterClient: NeedsToRegisterClientUseCase,
private val wireSessionImageLoader: WireSessionImageLoader,
private val shouldTriggerMigrationForUser: ShouldTriggerMigrationForUserUserCase,
private val certificateRevocationListCheckWorker: CertificateRevocationListCheckWorker
) : SavedStateViewModel(savedStateHandle) {

var homeState by mutableStateOf(HomeState())
private set

init {
loadUserAvatar()
viewModelScope.launch {
certificateRevocationListCheckWorker.execute()
}
}

fun checkRequirements(onRequirement: (HomeRequirement) -> Unit) {
Expand Down

0 comments on commit 5eba8b5

Please sign in to comment.