Skip to content

Commit

Permalink
chore: Provide team url use case through user scope [#WPB-14873] (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-zagorski authored Dec 17, 2024
1 parent 69621bc commit 91b8319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,8 @@ class UserSessionScope internal constructor(
selfTeamId,
checkRevocationList,
syncFeatureConfigsUseCase,
userScopedLogger
userScopedLogger,
getTeamUrlUseCase
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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(
Expand Down

0 comments on commit 91b8319

Please sign in to comment.