Browse Source
Merge pull request #11171 from nextcloud/bugfix/noid/shared-by-info-for-room-shares-without-names
Better shared-by info for conversations without names
pull/11297/head
Joas Schilling
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
22 additions and
10 deletions
-
core/js/sharedialogresharerinfoview.js
|
|
|
@ -100,16 +100,28 @@ |
|
|
|
{escape: false} |
|
|
|
); |
|
|
|
} else if (this.model.getReshareType() === OC.Share.SHARE_TYPE_ROOM) { |
|
|
|
sharedByText = t( |
|
|
|
'core', |
|
|
|
'Shared with you and the conversation {conversation} by {owner}', |
|
|
|
{ |
|
|
|
conversation: this.model.getReshareWithDisplayName(), |
|
|
|
owner: ownerDisplayName |
|
|
|
}, |
|
|
|
undefined, |
|
|
|
{escape: false} |
|
|
|
); |
|
|
|
if (this.model.get('reshare').share_with_displayname) { |
|
|
|
sharedByText = t( |
|
|
|
'core', |
|
|
|
'Shared with you and the conversation {conversation} by {owner}', |
|
|
|
{ |
|
|
|
conversation: this.model.getReshareWithDisplayName(), |
|
|
|
owner: ownerDisplayName |
|
|
|
}, |
|
|
|
undefined, |
|
|
|
{escape: false} |
|
|
|
); |
|
|
|
} else { |
|
|
|
sharedByText = t( |
|
|
|
'core', |
|
|
|
'Shared with you in a conversation by {owner}', |
|
|
|
{ |
|
|
|
owner: ownerDisplayName |
|
|
|
}, |
|
|
|
undefined, |
|
|
|
{escape: false} |
|
|
|
); |
|
|
|
} |
|
|
|
} else { |
|
|
|
sharedByText = t( |
|
|
|
'core', |
|
|
|
|