diff options
author | Joas Schilling <coding@schilljs.com> | 2018-09-11 12:57:36 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-09-11 12:57:36 +0200 |
commit | 7f0de11bd5d95a9ff3abc886328b90f15c5851a8 (patch) | |
tree | 8a0c0eaa2a8415b116d1c5f7083e6b1838d95807 | |
parent | 210b0f092f93fa30f5c3542f684e55cc3ba5532f (diff) | |
download | nextcloud-server-7f0de11bd5d95a9ff3abc886328b90f15c5851a8.tar.gz nextcloud-server-7f0de11bd5d95a9ff3abc886328b90f15c5851a8.zip |
Better shared-by info for conversations without names
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | core/js/sharedialogresharerinfoview.js | 32 |
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', |