From 8e01d58909779b4c6243f0cd31b09cb98a0c8be0 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 29 Jan 2024 15:27:44 +0100 Subject: [PATCH] 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}) --- services/graph/pkg/service/v0/sharedwithme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/graph/pkg/service/v0/sharedwithme.go b/services/graph/pkg/service/v0/sharedwithme.go index 73558f324..9a8ea148e 100644 --- a/services/graph/pkg/service/v0/sharedwithme.go +++ b/services/graph/pkg/service/v0/sharedwithme.go @@ -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, }))