summary refs log tree commit diff
path: root/resources/qml/delegates/Encrypted.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-30 19:32:28 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:48:55 +0100
commit750c64f32363df062bb44c0206f5ecb831ee9757 (patch)
tree8d7ac271bceba73164742e0919c2199da45e4401 /resources/qml/delegates/Encrypted.qml
parentFix wrapping in member events (diff)
downloadnheko-750c64f32363df062bb44c0206f5ecb831ee9757.tar.xz
Get rid of some useless code
Diffstat (limited to 'resources/qml/delegates/Encrypted.qml')
-rw-r--r--resources/qml/delegates/Encrypted.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/delegates/Encrypted.qml b/resources/qml/delegates/Encrypted.qml
index 076b5a5e..8c9257a4 100644
--- a/resources/qml/delegates/Encrypted.qml
+++ b/resources/qml/delegates/Encrypted.qml
@@ -15,7 +15,7 @@ Rectangle {
     required property string eventId
 
     radius: fontMetrics.lineSpacing / 2 + Nheko.paddingMedium
-    width: parent ? parent.width : undefined
+    width: parent.width
     height: contents.implicitHeight + Nheko.paddingMedium * 2
     color: Nheko.colors.alternateBase
 
@@ -57,7 +57,7 @@ Rectangle {
                     }
                 }
                 color: Nheko.colors.text
-                width: parent ? parent.width : undefined
+                width: parent.width
             }
 
             Button {