diff --git a/apps/files_sharing/src/utils/SharedWithMe.js b/apps/files_sharing/src/utils/SharedWithMe.js index 400bb8010f196..1959cd30222f1 100644 --- a/apps/files_sharing/src/utils/SharedWithMe.js +++ b/apps/files_sharing/src/utils/SharedWithMe.js @@ -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 === ' ') { + 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(