Skip to content

Commit

Permalink
Merge branch 'develop' into Push-notification-on-top-of-calling-UI-shown
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina authored Nov 7, 2024
2 parents fef26d1 + e3c1dee commit 8532cea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class BackupAndRestoreViewModel
restoreFileValidation = RestoreFileValidation.ValidNonEncryptedBackup,
backupRestoreProgress = BackupRestoreProgress.InProgress(PROGRESS_75)
)
when (importBackup(importedBackupPath, null)) {
when (val result = importBackup(importedBackupPath, null)) {
RestoreBackupResult.Success -> {
updateCreationProgress(PROGRESS_75)
delay(SMALL_DELAY)
Expand All @@ -221,10 +221,7 @@ class BackupAndRestoreViewModel
}

is RestoreBackupResult.Failure -> {
appLogger.e(
"Error when restoring the db file. The format or version of the backup is not compatible with this " +
"version of the app"
)
appLogger.e("Error when restoring the backup db file caused by: ${result.failure.cause}")
state = state.copy(
restoreFileValidation = RestoreFileValidation.IncompatibleBackup,
backupRestoreProgress = BackupRestoreProgress.Failed
Expand Down
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 23 files
+3 βˆ’0 calling/consumer-proguard-rules.pro
+29 βˆ’16 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/conversation/ConversationRepository.kt
+1 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
+9 βˆ’3 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/backup/RestoreBackupUseCase.kt
+7 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/backup/RestoreWebBackupUseCase.kt
+3 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/conversation/ConversationScope.kt
+41 βˆ’0 ...in/kotlin/com/wire/kalium/logic/feature/conversation/ObserveConversationListDetailsWithEventsUseCaseImpl.kt
+2 βˆ’1 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/conversation/ConversationMapperTest.kt
+84 βˆ’92 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/conversation/ConversationRepositoryTest.kt
+147 βˆ’0 persistence/src/commonMain/db_user/com/wire/kalium/persistence/ConversationDetails.sq
+174 βˆ’0 persistence/src/commonMain/db_user/com/wire/kalium/persistence/ConversationDetailsWithEvents.sq
+3 βˆ’253 persistence/src/commonMain/db_user/com/wire/kalium/persistence/Conversations.sq
+9 βˆ’37 persistence/src/commonMain/db_user/com/wire/kalium/persistence/MessagePreview.sq
+215 βˆ’0 persistence/src/commonMain/db_user/migrations/88.sqm
+2 βˆ’2 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationDAO.kt
+13 βˆ’9 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationDAOImpl.kt
+14 βˆ’22 ...e/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationDetailsWithEventsMapper.kt
+39 βˆ’13 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationExtensions.kt
+2 βˆ’2 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationMapper.kt
+1 βˆ’1 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/member/MemberDAO.kt
+2 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/db/UserDatabaseBuilder.kt
+2 βˆ’2 persistence/src/commonTest/kotlin/com/wire/kalium/persistence/conversation/ConversationExtensionsTest.kt
+5 βˆ’5 persistence/src/commonTest/kotlin/com/wire/kalium/persistence/dao/ConversationDAOTest.kt

0 comments on commit 8532cea

Please sign in to comment.