Improve speed/feedback of final steps of backup restore.

This commit is contained in:
Cody Henthorne
2025-06-10 10:32:45 -04:00
committed by GitHub
parent 37c3578329
commit 38adb519e3
10 changed files with 41 additions and 10 deletions

View File

@@ -974,6 +974,8 @@ object BackupRepository {
eventTimer.emit("chatItem")
}
EventBus.getDefault().post(RestoreV2Event(RestoreV2Event.Type.PROGRESS_FINALIZING, 0.bytes, 0.bytes))
if (!importState.importedChatFolders) {
// Add back default All Chats chat folder after clearing data if missing
SignalDatabase.chatFolders.insertAllChatFolder()

View File

@@ -11,7 +11,7 @@ class RestoreV2Event(val type: Type, val count: ByteSize, val estimatedTotalCoun
enum class Type {
PROGRESS_DOWNLOAD,
PROGRESS_RESTORE,
FINISHED
PROGRESS_FINALIZING
}
fun getProgress(): Float {