fix(MessageView): Show message when there is one img preview and extra text

This commit is contained in:
Alex Jbanca 2023-02-15 15:48:43 +02:00 committed by Alex Jbanca
parent 3bb667bb7a
commit ed9e782262
1 changed files with 2 additions and 1 deletions

View File

@ -693,7 +693,8 @@ Loader {
onLinksLoaded: {
// If there is only one image and no links, hide the message
// Handled in linksLoaded signal to evaulate it only once
d.hideMessage = linksMessageView.unfurledImagesCount === 1 && linksMessageView.unfurledLinksCount === 0
d.hideMessage = linksMessageView.unfurledImagesCount === 1 && linksMessageView.unfurledLinksCount === 0
&& `<p>${root.linkUrls}</p>` === root.messageText
}
}
}