|
@@ -156,7 +156,7 @@ class NCContextMenu: NSObject {
|
|
|
Task {
|
|
|
let error = await NCNetworking.shared.deleteMetadata(metadata, onlyLocalCache: false)
|
|
|
if error != .success {
|
|
|
- NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataSourceNetworkForced)
|
|
|
+ NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterDeleteFile, userInfo: ["error": error])
|
|
|
NCContentPresenter.shared.showError(error: error)
|
|
|
}
|
|
|
}
|
|
@@ -170,7 +170,7 @@ class NCContextMenu: NSObject {
|
|
|
Task {
|
|
|
let error = await NCNetworking.shared.deleteMetadata(metadata, onlyLocalCache: true)
|
|
|
if error != .success {
|
|
|
- NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataSourceNetworkForced)
|
|
|
+ NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterDeleteFile, userInfo: ["error": error])
|
|
|
NCContentPresenter.shared.showError(error: error)
|
|
|
}
|
|
|
}
|