diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/screenshotCensoring/ObserveScreenshotCensoringConfigUseCase.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/screenshotCensoring/ObserveScreenshotCensoringConfigUseCase.kt index d305617e0e4..7ae1fe9a6dc 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/screenshotCensoring/ObserveScreenshotCensoringConfigUseCase.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/screenshotCensoring/ObserveScreenshotCensoringConfigUseCase.kt @@ -39,10 +39,10 @@ internal class ObserveScreenshotCensoringConfigUseCaseImpl( override suspend fun invoke(): Flow { return combine( userConfigRepository.observeScreenshotCensoringConfig() - .mapToRightOr(true), // for safety it's set to true if we can't determine it + .mapToRightOr(false), userConfigRepository.observeTeamSettingsSelfDeletingStatus() .mapRight { it.enforcedSelfDeletionTimer is TeamSelfDeleteTimer.Enforced } - .mapToRightOr(true), // for safety it's set to true if we can't determine it + .mapToRightOr(false) ) { screenshotCensoringEnabled, teamSelfDeletingEnforced -> when { teamSelfDeletingEnforced -> ObserveScreenshotCensoringConfigResult.Enabled.EnforcedByTeamSelfDeletingSettings