summary refs log tree commit diff
path: root/resources/qml/delegates/PlayableMediaMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-22 17:08:32 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:07:15 +0100
commit9fd279c020bba2f433a0f9862277bc59fd621130 (patch)
tree69f901b0b4f51eee918d4d7d1822325090cd9485 /resources/qml/delegates/PlayableMediaMessage.qml
parentWrap text in pre tags (diff)
downloadnheko-9fd279c020bba2f433a0f9862277bc59fd621130.tar.xz
Show encryption enabled and use a non zero size for zero size vide
Diffstat (limited to 'resources/qml/delegates/PlayableMediaMessage.qml')
-rw-r--r--resources/qml/delegates/PlayableMediaMessage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/PlayableMediaMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml
index 68b09f7b..1207ac77 100644
--- a/resources/qml/delegates/PlayableMediaMessage.qml
+++ b/resources/qml/delegates/PlayableMediaMessage.qml
@@ -20,7 +20,7 @@ Rectangle {
 		Rectangle {
 			id: videoContainer
 			visible: model.type == MtxEvent.VideoMessage
-			width: Math.min(parent.width, model.width)
+			width: Math.min(parent.width, model.width ? model.width : 400) // some media has 0 as size...
 			height: width*model.proportionalHeight
 			Image {
 				anchors.fill: parent