fix: use getters for protobuf types

This commit is contained in:
Jannik Stehle
2024-05-08 08:06:27 +02:00
parent d40a643fbf
commit 164f8650da

View File

@@ -186,9 +186,9 @@ func matchToPropResponse(ctx context.Context, match *searchmsg.Match) (*propfind
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:shareid", match.Entity.Ref.ResourceId.OpaqueId))
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:shareroot", match.Entity.ShareRootName))
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:remote-item-id", storagespace.FormatResourceID(provider.ResourceId{
StorageId: match.Entity.RemoteItemId.StorageId,
SpaceId: match.Entity.RemoteItemId.SpaceId,
OpaqueId: match.Entity.RemoteItemId.OpaqueId,
StorageId: match.Entity.GetRemoteItemId().GetStorageId(),
SpaceId: match.Entity.GetRemoteItemId().GetSpaceId(),
OpaqueId: match.Entity.GetRemoteItemId().GetOpaqueId(),
})))
}
propstatOK.Prop = append(propstatOK.Prop, prop.Escaped("oc:name", match.Entity.Name))