diff --git a/app/src/main/kotlin/com/wire/android/di/KaliumConfigsModule.kt b/app/src/main/kotlin/com/wire/android/di/KaliumConfigsModule.kt index b6b2dc73003..ea40a648038 100644 --- a/app/src/main/kotlin/com/wire/android/di/KaliumConfigsModule.kt +++ b/app/src/main/kotlin/com/wire/android/di/KaliumConfigsModule.kt @@ -19,7 +19,6 @@ package com.wire.android.di import android.content.Context -import android.os.Build import com.wire.android.BuildConfig import com.wire.android.datastore.GlobalDataStore import com.wire.android.util.isWebsocketEnabledByDefault @@ -50,7 +49,7 @@ class KaliumConfigsModule { fileRestrictionState = fileRestriction, forceConstantBitrateCalls = BuildConfig.FORCE_CONSTANT_BITRATE_CALLS, // we use upsert, available from SQL3.24, which is supported from Android API30, so for older APIs we have to use SQLCipher - shouldEncryptData = !BuildConfig.DEBUG || Build.VERSION.SDK_INT < Build.VERSION_CODES.R, + shouldEncryptData = true, lowerKeyPackageLimits = BuildConfig.LOWER_KEYPACKAGE_LIMIT, lowerKeyingMaterialsUpdateThreshold = BuildConfig.PRIVATE_BUILD, isMLSSupportEnabled = BuildConfig.MLS_SUPPORT_ENABLED, diff --git a/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt b/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt index 4d59a2861b2..921e20b233c 100644 --- a/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt +++ b/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt @@ -167,7 +167,6 @@ class AccountSwitchUseCase @Inject constructor( LogoutReason.SELF_SOFT_LOGOUT, LogoutReason.SELF_HARD_LOGOUT -> { deleteSession(invalidAccount.userId) } - LogoutReason.MIGRATION_TO_CC_FAILED, LogoutReason.DELETED_ACCOUNT, LogoutReason.REMOVED_CLIENT, LogoutReason.SESSION_EXPIRED -> deleteSession(invalidAccount.userId) diff --git a/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt b/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt index 624b6aa74a5..4fefdb9e261 100644 --- a/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt +++ b/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt @@ -292,7 +292,7 @@ class WireActivityViewModel @Inject constructor( // Self logout is handled from the Self user profile screen directly } - LogoutReason.MIGRATION_TO_CC_FAILED, LogoutReason.REMOVED_CLIENT -> + LogoutReason.REMOVED_CLIENT -> globalAppState = globalAppState.copy(blockUserUI = CurrentSessionErrorState.RemovedClient) diff --git a/kalium b/kalium index 5b2361e4f96..fd112fc1e49 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit 5b2361e4f96ef7f51410ff97fe6e1a907e84d455 +Subproject commit fd112fc1e4948e12bccb4240568462b81577e26a