Removed workaround for Z-Push not sending parent ids of shared folders.

This commit is contained in:
Patrick Simpson 2017-03-01 10:21:48 +01:00
parent 155f382231
commit c0170bf856
2 changed files with 1 additions and 13 deletions

View File

@ -85,7 +85,7 @@ namespace Acacia.Features.SharedFolders
internal SharedFolder AddShare(AvailableFolder folder, SharedFolder state)
{
state = state ?? CreateDefaultShare(folder);
_currentShares[folder.BackendId] = state.PatchInformation(folder);
_currentShares[folder.BackendId] = state;
CheckDirty();
return state;
}

View File

@ -88,18 +88,6 @@ namespace Acacia.ZPush.API.SharedFolders
return _data;
}
/// <summary>
/// Patches in any information that is available on AvailableFolder, but not SharedFolder. This is specifically the parent id.
/// </summary>
public SharedFolder PatchInformation(AvailableFolder folder)
{
if (folder.ParentIdAsBackend != _data.parentid)
{
_data.parentid = folder.ParentIdAsBackend;
}
return this;
}
#endregion
#region Setup