Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
@@ -70,7 +70,7 @@ extension NCShare {
title: NSLocalizedString("_share_unshare_", comment: ""),
icon: NCUtility.shared.loadImage(named: "delete").imageColor(NCBrandColor.shared.brandElement),
action: { _ in
- // TODO: Unshare!
+ self.networking?.unShare(idShare: share.idShare)
}
)
@@ -206,7 +206,9 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareNetworkingD
NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterReloadDataNCShare)
- func unShareCompleted() { }
+ func unShareCompleted() {
+ self.reloadData()
+ }
func updateShareWithError(idShare: Int) {
self.reloadData()