From b545a27bc62a5e50046167f8a77ad5b771189310 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 9 May 2023 13:22:41 +0200 Subject: [PATCH] Fix ReplyComponent warnings --- src/qml/Component/Timeline/ReplyComponent.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qml/Component/Timeline/ReplyComponent.qml b/src/qml/Component/Timeline/ReplyComponent.qml index 7c97b743d..5f863ab70 100644 --- a/src/qml/Component/Timeline/ReplyComponent.qml +++ b/src/qml/Component/Timeline/ReplyComponent.qml @@ -62,11 +62,11 @@ Item { id: loader Layout.fillWidth: true - Layout.maximumHeight: loader.item && (reply.type == MessageEventModel.Image || reply.type == MessageEventModel.Sticker) ? loader.item.height : -1 + Layout.maximumHeight: loader.item && (model.reply.type == MessageEventModel.Image || model.reply.type == MessageEventModel.Sticker) ? loader.item.height : -1 Layout.columnSpan: 2 sourceComponent: { - switch (reply.type) { + switch (model.reply.type) { case MessageEventModel.Image: case MessageEventModel.Sticker: return imageComponent; @@ -96,7 +96,7 @@ Item { Component { id: textComponent RichLabel { - textMessage: reply.display + textMessage: model.reply.display textFormat: Text.RichText HoverHandler { @@ -141,8 +141,8 @@ Item { id: mimeComponent MimeComponent { mimeIconSource: replyComponent.mediaInfo.mimeIcon - label: reply.display - subLabel: reply.type === MessageEventModel.File ? Controller.formatByteSize(replyComponent.mediaInfo.size) : Controller.formatDuration(replyComponent.mediaInfo.duration) + label: model.reply.display + subLabel: model.reply.type === MessageEventModel.File ? Controller.formatByteSize(replyComponent.mediaInfo.size) : Controller.formatDuration(replyComponent.mediaInfo.duration) } } Component {