mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 03:40:56 +01:00
Fix issues with archive uploads matching digest.
This commit is contained in:
@@ -244,7 +244,7 @@ class InternalBackupPlaygroundViewModel : ViewModel() {
|
||||
.filter { attachments.contains(it.dbAttachment.attachmentId) }
|
||||
.map { it.dbAttachment }
|
||||
|
||||
BackupRepository.archiveMedia(toArchive)
|
||||
BackupRepository.copyAttachmentToArchive(toArchive)
|
||||
}
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(Schedulers.single())
|
||||
@@ -268,7 +268,7 @@ class InternalBackupPlaygroundViewModel : ViewModel() {
|
||||
}
|
||||
|
||||
fun archiveAttachmentMedia(attachment: BackupAttachment) {
|
||||
disposables += Single.fromCallable { BackupRepository.archiveMedia(attachment.dbAttachment) }
|
||||
disposables += Single.fromCallable { BackupRepository.copyAttachmentToArchive(attachment.dbAttachment) }
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(Schedulers.single())
|
||||
.doOnSubscribe { _mediaState.set { update(inProgress = inProgressMediaIds + attachment.dbAttachment.attachmentId) } }
|
||||
|
||||
Reference in New Issue
Block a user