From 340a1035812357bf4b77234f5b9653269292056c Mon Sep 17 00:00:00 2001 From: Yamil Medina Date: Thu, 28 Nov 2024 11:51:33 -0300 Subject: [PATCH] =?UTF-8?q?chore:=20bulletproofing=20crypto=20box=20to=20c?= =?UTF-8?q?c=20migration=20(WPB-14250)=20(=F0=9F=8D=924.6)=20(#3677)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/wire/android/feature/AccountSwitchUseCase.kt | 1 + .../main/kotlin/com/wire/android/ui/WireActivityViewModel.kt | 2 +- default.json | 2 +- kalium | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) 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 17ce4b5dad8..67ec45ab917 100644 --- a/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt +++ b/app/src/main/kotlin/com/wire/android/feature/AccountSwitchUseCase.kt @@ -166,6 +166,7 @@ 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 12ba8586963..7b8c9199570 100644 --- a/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt +++ b/app/src/main/kotlin/com/wire/android/ui/WireActivityViewModel.kt @@ -231,7 +231,7 @@ class WireActivityViewModel @Inject constructor( // Self logout is handled from the Self user profile screen directly } - LogoutReason.REMOVED_CLIENT -> + LogoutReason.MIGRATION_TO_CC_FAILED, LogoutReason.REMOVED_CLIENT -> globalAppState = globalAppState.copy(blockUserUI = CurrentSessionErrorState.RemovedClient) LogoutReason.DELETED_ACCOUNT -> diff --git a/default.json b/default.json index 4936fc005bc..b908e864406 100644 --- a/default.json +++ b/default.json @@ -28,7 +28,7 @@ "default_backend_url_website": "https://wire.com", "default_backend_title": "wire-staging", "is_password_protected_guest_link_enabled": true, - "encrypt_proteus_storage": true + "encrypt_proteus_storage": false }, "staging": { "application_id": "com.waz.zclient.dev", diff --git a/kalium b/kalium index bea029d86e5..c5c24685027 160000 --- a/kalium +++ b/kalium @@ -1 +1 @@ -Subproject commit bea029d86e57ae0d46d9923595d3ad467c5b8c57 +Subproject commit c5c24685027a629022cabe70750ff62d7edc48ff