mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
Removed workaround for Z-Push not sending parent ids of shared folders.
This commit is contained in:
parent
155f382231
commit
c0170bf856
@ -85,7 +85,7 @@ namespace Acacia.Features.SharedFolders
|
|||||||
internal SharedFolder AddShare(AvailableFolder folder, SharedFolder state)
|
internal SharedFolder AddShare(AvailableFolder folder, SharedFolder state)
|
||||||
{
|
{
|
||||||
state = state ?? CreateDefaultShare(folder);
|
state = state ?? CreateDefaultShare(folder);
|
||||||
_currentShares[folder.BackendId] = state.PatchInformation(folder);
|
_currentShares[folder.BackendId] = state;
|
||||||
CheckDirty();
|
CheckDirty();
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
@ -88,18 +88,6 @@ namespace Acacia.ZPush.API.SharedFolders
|
|||||||
return _data;
|
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
|
#endregion
|
||||||
|
|
||||||
#region Setup
|
#region Setup
|
||||||
|
Loading…
Reference in New Issue
Block a user