aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-27 11:57:39 +0300
committerlink2xt <link2xt@testrun.org>2021-06-27 11:57:39 +0300
commitd5d8f9a4abd6ee9c2cf2e7b938b6dd8313dc5794 (patch)
treed153af8710ba2b26cdb73d0e63f8344639176c4e /qml
parentfcad46f571e1a02d6abeb5004866ae929f64f63f (diff)
downloadkdeltachat-d5d8f9a4abd6ee9c2cf2e7b938b6dd8313dc5794.tar.gz
kdeltachat-d5d8f9a4abd6ee9c2cf2e7b938b6dd8313dc5794.zip
Reference ListView from ChatPage instead of Message
Diffstat (limited to 'qml')
-rw-r--r--qml/ChatPage.qml1
-rw-r--r--qml/Message.qml1
2 files changed, 1 insertions, 1 deletions
diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml
index dfa5a4c..3099488 100644
--- a/qml/ChatPage.qml
+++ b/qml/ChatPage.qml
@@ -105,6 +105,7 @@ Kirigami.ScrollablePage {
delegate: Message {
message: chatPage.context.getMessage(msgId)
context: chatPage.context
+ width: ListView.view.width
}
}
diff --git a/qml/Message.qml b/qml/Message.qml
index feed6c8..417c086 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -18,7 +18,6 @@ RowLayout {
readonly property DcMessage quoteMessage: message.quotedMessage
readonly property DcContact quoteFrom: quoteMessage ? context.getContact(quoteMessage.fromId) : null
- width: ListView.view.width
layoutDirection: message.fromId == 1 ? Qt.RightToLeft : Qt.LeftToRight
readonly property string overrideName: message.getOverrideSenderName()