diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 6363a87d7215fc815039c542db7005d0cc1c3f88..a9a142b9337232d1db0407d1b0bcc32ca2b89aa4 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -396,7 +396,7 @@ Item {
 
             anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
             width: chat.delegateMaxWidth
-            height: section.active ? section.height + timelinerow.height: timelinerow.height
+            height: section.active ? section.height + timelinerow.height : timelinerow.height
 
             hoverEnabled: true