graph/sharedWithMe: Adjust the driveItem's ID once more

In order to be able to group shares received for the same resource in a single driveItem
the driveItem's ID needs to be unrelated to the underlying shares' ids. We decided to base
it off of the shared resource's id (currently
{sharesstorageproviderid}${sharejailid}!{resourceid of shared item})
This commit is contained in:
Ralf Haferkamp
2024-01-29 15:27:44 +01:00
committed by Ralf Haferkamp
parent d05a5b4334
commit 8e01d58909

View File

@@ -136,7 +136,7 @@ func (g Graph) listSharedWithMe(ctx context.Context) ([]libregraph.DriveItem, er
driveItem.SetId(storagespace.FormatResourceID(storageprovider.ResourceId{
StorageId: utils.ShareStorageProviderID,
OpaqueId: receivedShare.GetShare().GetId().GetOpaqueId(),
OpaqueId: storagespace.FormatResourceID(*receivedShare.GetShare().GetResourceId()),
SpaceId: utils.ShareStorageSpaceID,
}))