fix(@chat): handle image placeholder

fixes #5934

Mobile still send the placeholder so we need to handle this case
manually by removing text if this is exactly equal to the placeholder
This commit is contained in:
Anthony Laibe 2022-06-20 09:48:42 +02:00 committed by Iuri Matias
parent eb3b22caef
commit c2555a7650
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ Item {
ChatTextView {
id: chatText
readonly property int leftPadding: chatImage.anchors.leftMargin + chatImage.width + chatHorizontalPadding
visible: isText || isEmoji || isImage
visible: isText || isEmoji || (isImage && root.message !== "<p>Update to latest version to see a nice image here!</p>")
message: Utils.removeGifUrls(root.message)
anchors.top: parent.top