Document message caption is now shown, fixes #59
This commit is contained in:
parent
03208e47f8
commit
d758648dc2
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ function getMessageText(message, simple, myself) {
|
|||
}
|
||||
if (message.content['@type'] === 'messageDocument') {
|
||||
if (message.content.document.file_name !== "") {
|
||||
return simple ? qsTr("Document: %1").arg(message.content.document.file_name) : message.content.document.file_name
|
||||
return simple ? qsTr("Document: %1").arg(message.content.document.file_name) : (message.content.document.file_name + ( message.content.caption.text !== "" ? ("<br />" + enhanceMessageText(message.content.caption) ) : "")).trim();
|
||||
} else {
|
||||
return simple ? (myself ? qsTr("sent a document", "myself") : qsTr("sent a document")) : "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue