]> source.dussan.org Git - nextcloud-server.git/commitdiff
Better shared-by info for conversations without names 11288/head
authorJoas Schilling <coding@schilljs.com>
Tue, 11 Sep 2018 10:57:36 +0000 (12:57 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 19 Sep 2018 11:46:13 +0000 (13:46 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
core/js/sharedialogresharerinfoview.js

index 06e18fef3f2f650708d4c56b5f3e8aa334c0a437..b2d5a093990a571d156f476342ddc94c108ecd35 100644 (file)
                                        {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',