Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jan 21, 2025
1 parent 710e432 commit ee83103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOSClient/Media/NCMedia.swift
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ class NCMedia: UIViewController {
}

if error.errorCode == self.global.errorResourceNotFound,
let ocId = userInfo["ocId"] as? String {
let ocIds = userInfo["ocId"] as? [String],
let ocId = ocIds.first {
self.database.deleteMetadataOcId(ocId)
self.loadDataSource {
self.semaphoreNotificationCenter.signal()
}
} else if error != .success {
NCContentPresenter().showError(error: error)
self.loadDataSource {
self.semaphoreNotificationCenter.signal()
}
Expand Down

0 comments on commit ee83103

Please sign in to comment.