Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
  • Loading branch information
marinofaggiana committed Sep 3, 2024
1 parent 996db7e commit 758b2ea
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ extension FileProviderExtension: NCNetworkingDelegate {

DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
if error == .success, let ocId {
/// SIGNAL
fileProviderData.shared.signalEnumerator(ocId: metadata.ocIdTransfer, type: .delete)
if !metadata.ocIdTransfer.isEmpty, ocId != metadata.ocIdTransfer {
NCManageDatabase.shared.deleteMetadataOcId(metadata.ocIdTransfer)
}
/// SIGNAL
fileProviderData.shared.signalEnumerator(ocId: metadata.ocIdTransfer, type: .delete)

metadata.fileName = fileName
metadata.serverUrl = serverUrl
metadata.uploadDate = (date as? NSDate) ?? NSDate()
Expand Down

0 comments on commit 758b2ea

Please sign in to comment.