Adjust upload manager

This commit is contained in:
Ali
2021-01-25 21:28:25 +05:00
parent 7b9b861356
commit 1084c5a198
3 changed files with 4 additions and 3 deletions

View File

@@ -432,6 +432,7 @@ public final class ChatImportActivityScreen: ViewController {
let signal = Signal<TempBoxFile?, NoError> { subscriber in
let tempFile = TempBox.shared.tempFile(fileName: entry.1)
if SSZipArchive.extractFileFromArchive(atPath: archivePath, filePath: entry.0.path, toPath: tempFile.path) {
//print("Extract \(entry.0.path) to \(tempFile.path)")
subscriber.putNext(tempFile)
subscriber.putCompletion()
} else {