mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-15 18:48:52 +01:00
Sync messages after restore
This commit is contained in:
@@ -44,7 +44,8 @@ import javax.inject.Singleton
|
||||
@Singleton
|
||||
class BackupRepositoryImpl @Inject constructor(
|
||||
private val context: Context,
|
||||
private val moshi: Moshi
|
||||
private val moshi: Moshi,
|
||||
private val syncRepo: SyncRepository
|
||||
) : BackupRepository {
|
||||
|
||||
companion object {
|
||||
@@ -197,6 +198,10 @@ class BackupRepositoryImpl @Inject constructor(
|
||||
Telephony.Sms.SUBSCRIPTION_ID to message.subId))
|
||||
}
|
||||
|
||||
restoreProgress.onNext(BackupRepository.Progress.Running(0, "Syncing messages"))
|
||||
|
||||
syncRepo.syncMessages()
|
||||
|
||||
restoreProgress.onNext(BackupRepository.Progress.Idle())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user