From 2e8b88bfef4f5a17e8c1e5913146c9821614fed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Zag=C3=B3rski?= Date: Tue, 17 Dec 2024 14:04:59 +0100 Subject: [PATCH] chore: Provide team url use case through user scope [#WPB-14873] --- .../kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt | 3 ++- .../kotlin/com/wire/kalium/logic/feature/user/UserScope.kt | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt index 9c031870119..438fbc5eda3 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt @@ -1905,7 +1905,8 @@ class UserSessionScope internal constructor( selfTeamId, checkRevocationList, syncFeatureConfigsUseCase, - userScopedLogger + userScopedLogger, + getTeamUrlUseCase ) } diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt index 9bae507ae54..7b5552e66fc 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UserScope.kt @@ -75,6 +75,7 @@ import com.wire.kalium.logic.feature.publicuser.GetAllContactsUseCaseImpl import com.wire.kalium.logic.feature.publicuser.GetKnownUserUseCase import com.wire.kalium.logic.feature.publicuser.GetKnownUserUseCaseImpl import com.wire.kalium.logic.feature.publicuser.RefreshUsersWithoutMetadataUseCase +import com.wire.kalium.logic.feature.server.GetTeamUrlUseCase import com.wire.kalium.logic.feature.user.readReceipts.ObserveReadReceiptsEnabledUseCase import com.wire.kalium.logic.feature.user.readReceipts.ObserveReadReceiptsEnabledUseCaseImpl import com.wire.kalium.logic.feature.user.readReceipts.PersistReadReceiptsStatusConfigUseCase @@ -117,7 +118,8 @@ class UserScope internal constructor( private val selfTeamIdProvider: SelfTeamIdProvider, private val checkRevocationList: RevocationListChecker, private val syncFeatureConfigs: SyncFeatureConfigsUseCase, - private val userScopedLogger: KaliumLogger + private val userScopedLogger: KaliumLogger, + private val teamUrlUseCase: GetTeamUrlUseCase ) { private val validateUserHandleUseCase: ValidateUserHandleUseCase get() = ValidateUserHandleUseCaseImpl() val getSelfUser: GetSelfUserUseCase get() = GetSelfUserUseCaseImpl(userRepository) @@ -127,6 +129,7 @@ class UserScope internal constructor( val getPublicAsset: GetAvatarAssetUseCase get() = GetAvatarAssetUseCaseImpl(assetRepository, userRepository) val enrollE2EI: EnrollE2EIUseCase get() = EnrollE2EIUseCaseImpl(e2EIRepository) + val getTeamUrl: GetTeamUrlUseCase get() = teamUrlUseCase val finalizeMLSClientAfterE2EIEnrollment: FinalizeMLSClientAfterE2EIEnrollment get() = FinalizeMLSClientAfterE2EIEnrollmentImpl(