From c2555a765044dbec036ef5ac6a0f15d2f46520d4 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 20 Jun 2022 09:48:42 +0200 Subject: [PATCH] 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 --- ui/imports/shared/views/chat/CompactMessageView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/imports/shared/views/chat/CompactMessageView.qml b/ui/imports/shared/views/chat/CompactMessageView.qml index 386411c883..16b4266961 100644 --- a/ui/imports/shared/views/chat/CompactMessageView.qml +++ b/ui/imports/shared/views/chat/CompactMessageView.qml @@ -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 !== "

Update to latest version to see a nice image here!

") message: Utils.removeGifUrls(root.message) anchors.top: parent.top