summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2018-09-19 13:45:31 +0200
committerGitHub <noreply@github.com>2018-09-19 13:45:31 +0200
commitdda0dfd5f13ffae5d3bfe07659344abe9d7c1606 (patch)
treecd0627aec1c6ca70b494b1d5e431f5023990ed93 /core/js
parentb75dde0c9a218f6154158d7fe54fd38d774a1970 (diff)
parent7f0de11bd5d95a9ff3abc886328b90f15c5851a8 (diff)
downloadnextcloud-server-dda0dfd5f13ffae5d3bfe07659344abe9d7c1606.tar.gz
nextcloud-server-dda0dfd5f13ffae5d3bfe07659344abe9d7c1606.zip
Merge pull request #11171 from nextcloud/bugfix/noid/shared-by-info-for-room-shares-without-names
Better shared-by info for conversations without names
Diffstat (limited to 'core/js')
-rw-r--r--core/js/sharedialogresharerinfoview.js32
1 files changed, 22 insertions, 10 deletions
diff --git a/core/js/sharedialogresharerinfoview.js b/core/js/sharedialogresharerinfoview.js
index 06e18fef3f2..b2d5a093990 100644
--- a/core/js/sharedialogresharerinfoview.js
+++ b/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',