File tree Expand file tree Collapse file tree
Sources/NextcloudFileProviderKit/Item
Tests/NextcloudFileProviderKitTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,11 +151,11 @@ public class Item: NSObject, NSFileProviderItem {
151151 }
152152
153153 public var isShared : Bool {
154- !metadata. shareType. isEmpty
154+ false // !metadata.shareType.isEmpty // Interim solution to counteract Finder misleadingly displaying shared items with an iCloud branded banner.
155155 }
156156
157157 public var isSharedByCurrentUser : Bool {
158- isShared && metadata. ownerId == account. id
158+ false // isShared && metadata.ownerId == account.id // Interim solution to counteract Finder misleadingly displaying shared items with an iCloud branded banner.
159159 }
160160
161161 public var ownerNameComponents : PersonNameComponents ? {
Original file line number Diff line number Diff line change @@ -866,8 +866,8 @@ final class ItemPropertyTests: XCTestCase {
866866 remoteInterface: MockRemoteInterface ( ) ,
867867 dbManager: Self . dbManager
868868 )
869- XCTAssertTrue ( sharedItem. isShared)
870- XCTAssertTrue ( sharedItem. isSharedByCurrentUser)
869+ XCTAssertFalse ( sharedItem. isShared)
870+ XCTAssertFalse ( sharedItem. isSharedByCurrentUser)
871871 XCTAssertNil ( sharedItem. ownerNameComponents) // Should be nil if it is shared by us
872872
873873 var sharedByOtherMetadata = sharedMetadata
@@ -880,11 +880,9 @@ final class ItemPropertyTests: XCTestCase {
880880 remoteInterface: MockRemoteInterface ( ) ,
881881 dbManager: Self . dbManager
882882 )
883- XCTAssertTrue ( sharedByOtherTime. isShared)
883+ XCTAssertFalse ( sharedByOtherTime. isShared)
884884 XCTAssertFalse ( sharedByOtherTime. isSharedByCurrentUser)
885- XCTAssertNotNil ( sharedByOtherTime. ownerNameComponents)
886- XCTAssertEqual ( sharedByOtherTime. ownerNameComponents? . givenName, " Claudio " )
887- XCTAssertEqual ( sharedByOtherTime. ownerNameComponents? . familyName, " Cambra " )
885+ XCTAssertNil ( sharedByOtherTime. ownerNameComponents)
888886
889887 var notSharedMetadata =
890888 SendableItemMetadata ( ocId: " test-id " , fileName: " test.txt " , account: Self . account)
You can’t perform that action at this time.
0 commit comments