Skip to content

Commit 701593a

Browse files
removed unused property
This was the cause of some weird behaviour where MS Graph would leave out some fields like the name of a shared folder, even though that owner exists. Since we didn't use the ownername anyway, I have removed it. Still need to look at the JSON structure overall. @GrandDynamo
1 parent ef6048a commit 701593a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

OneDrive-Cloud-Player/Services/Helpers/CacheHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,12 @@ public async Task<List<CachedDrive>> GetDrivesFromGraph()
208208
driveToAdd.DriveName = "Your Drive";
209209
driveToAdd.DriveId = graphDrive.ParentReference.DriveId;
210210
driveToAdd.IsSharedFolder = false;
211-
driveToAdd.OwnerName = CurrentUsername;
212211
}
213212
else
214213
{
215214
driveToAdd.DriveName = graphDrive.Name;
216215
driveToAdd.DriveId = graphDrive.RemoteItem.ParentReference.DriveId;
217216
driveToAdd.IsSharedFolder = true;
218-
driveToAdd.OwnerName = graphDrive.RemoteItem.Shared.SharedBy.User.DisplayName;
219217
}
220218
newlyCachedDrives.Add(driveToAdd);
221219
}

0 commit comments

Comments
 (0)