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
32 changes: 22 additions & 10 deletions apps/files_sharing/src/utils/SharedWithMe.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,28 @@ const shareWithTitle = function(share) {
{ escape: false }
)
} else if (share.type === OC.Share.SHARE_TYPE_CIRCLE) {
return t(
'files_sharing',
'Shared with you and {circle} by {owner}',
{
circle: share.shareWithDisplayName,
owner: share.ownerDisplayName,
},
undefined,
{ escape: false }
)
if (share.shareWithDisplayName === ' ') {
Copy link
Member

@blizzz blizzz Jun 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a single whitespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, as said if I return an empty string, the ID of the Circle/Share will be used as displayName. single whitespace is a quick workaround

return t(
'files_sharing',
'Shared with you by {owner}',
{
owner: share.ownerDisplayName,
},
undefined,
{ escape: false }
)
} else {
return t(
'files_sharing',
'Shared with you and {circle} by {owner}',
{
circle: share.shareWithDisplayName,
owner: share.ownerDisplayName,
},
undefined,
{ escape: false }
)
}
} else if (share.type === OC.Share.SHARE_TYPE_ROOM) {
if (share.shareWithDisplayName) {
return t(
Expand Down