mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Implement checkin job for backups.
This commit is contained in:
committed by
Greyson Parrelli
parent
ae37001949
commit
6ff31b950d
@@ -132,6 +132,19 @@ object BackupRepository {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Refreshes backup via server
|
||||
*/
|
||||
fun refreshBackup(): NetworkResult<Unit> {
|
||||
return initBackupAndFetchAuth()
|
||||
.then { accessPair ->
|
||||
AppDependencies.archiveApi.refreshBackup(
|
||||
aci = SignalStore.account.requireAci(),
|
||||
archiveServiceAccess = accessPair.messageBackupAccess
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the free storage space in the device's data partition.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user