diff --git a/src/qml/Chat/Timeline/EventImageTextBubble.qml b/src/qml/Chat/Timeline/EventImageTextBubble.qml index f673b31f..a8887cd0 100644 --- a/src/qml/Chat/Timeline/EventImageTextBubble.qml +++ b/src/qml/Chat/Timeline/EventImageTextBubble.qml @@ -2,7 +2,7 @@ import QtQuick 2.12 import "../../Base" HLabel { - visible: Boolean(text) + id: bubble anchors.margins: theme.spacing / 4 topPadding: theme.spacing / 2 @@ -16,4 +16,11 @@ HLabel { color: Qt.hsla(0, 0, 0, 0.7) radius: theme.radius } + + Binding { + target: bubble + property: "visible" + value: false + when: ! Boolean(bubble.text) + } }