Better shared-by info for conversations without names
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
210b0f092f
commit
7f0de11bd5
1 changed files with 22 additions and 10 deletions
|
@ -100,16 +100,28 @@
|
||||||
{escape: false}
|
{escape: false}
|
||||||
);
|
);
|
||||||
} else if (this.model.getReshareType() === OC.Share.SHARE_TYPE_ROOM) {
|
} else if (this.model.getReshareType() === OC.Share.SHARE_TYPE_ROOM) {
|
||||||
sharedByText = t(
|
if (this.model.get('reshare').share_with_displayname) {
|
||||||
'core',
|
sharedByText = t(
|
||||||
'Shared with you and the conversation {conversation} by {owner}',
|
'core',
|
||||||
{
|
'Shared with you and the conversation {conversation} by {owner}',
|
||||||
conversation: this.model.getReshareWithDisplayName(),
|
{
|
||||||
owner: ownerDisplayName
|
conversation: this.model.getReshareWithDisplayName(),
|
||||||
},
|
owner: ownerDisplayName
|
||||||
undefined,
|
},
|
||||||
{escape: false}
|
undefined,
|
||||||
);
|
{escape: false}
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
sharedByText = t(
|
||||||
|
'core',
|
||||||
|
'Shared with you in a conversation by {owner}',
|
||||||
|
{
|
||||||
|
owner: ownerDisplayName
|
||||||
|
},
|
||||||
|
undefined,
|
||||||
|
{escape: false}
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sharedByText = t(
|
sharedByText = t(
|
||||||
'core',
|
'core',
|
||||||
|
|
Loading…
Reference in a new issue