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

View File

@ -694,6 +694,7 @@ Loader {
// 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
&& `<p>${root.linkUrls}</p>` === root.messageText
}
}
}