Skip to content

Commit

Permalink
chore: bulletproofing crypto box to cc migration (WPB-14250) (πŸ’4.6) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored Nov 28, 2024
1 parent 8041a2d commit 340a103
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
2 changes: 1 addition & 1 deletion default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 15 files
+30 βˆ’16 cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/ProteusClientCoreCryptoImpl.kt
+4 βˆ’1 cryptography/src/commonMain/kotlin/com/wire/kalium/cryptography/exceptions/ProteusException.kt
+34 βˆ’9 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/client/ProteusClientProvider.kt
+30 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/client/ProteusMigrationRecoveryHandler.kt
+7 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/logout/LogoutReason.kt
+2 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/session/SessionMapper.kt
+8 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
+12 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/auth/LogoutUseCase.kt
+52 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/client/ProteusMigrationRecoveryHandlerImpl.kt
+8 βˆ’2 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/client/RegisterClientUseCase.kt
+1 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncCriteriaProvider.kt
+32 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/auth/LogoutUseCaseTest.kt
+80 βˆ’0 logic/src/jvmTest/kotlin/com/wire/kalium/logic/data/client/ProteusClientProviderTest.kt
+38 βˆ’0 logic/src/jvmTest/kotlin/com/wire/kalium/logic/feature/client/ProteusMigrationRecoveryHandlerTest.kt
+7 βˆ’1 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/model/LogoutReason.kt

0 comments on commit 340a103

Please sign in to comment.