Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion apps/files_sharing/src/services/SharingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ export const getContents = async (sharedWithYou = true, sharedWithOthers = true,
// Also check the sharingStatusAction.ts code
contents = groupBy(contents, 'source').map((nodes) => {
const node = nodes[0]
node.attributes['share-types'] = nodes.map(node => node.attributes['share-types'])
const mtime = node.mtime
const shareTypes = nodes.map(node => node.attributes['share-types'])

// Updating attributes will reset the mtime
node.attributes['share-types'] = shareTypes

// Restore mtime to the most recent share
// @ts-expect-error _data is private, mtime is readonly
node._data.mtime = mtime

return node
})

Expand Down