From 3158d4ce95cf8e8a1884cf795de41bee16bef3d5 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 03:34:37 +0300 Subject: Fix some qmllint warnings --- qml/ChatPage.qml | 8 ++++---- qml/Message.qml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index 4496954..e084efe 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -65,20 +65,20 @@ Kirigami.ScrollablePage { console.log("Incoming message for chat " + chatId) if (chatId == chatPage.chatId) { - updateMessagelist() + chatPage.updateMessagelist() } } function onMessagesChanged(accountId, chatId, msgId) { console.log("Messages changed for chat " + chatId) if (chatId == chatPage.chatId) { - updateMessagelist() + chatPage.updateMessagelist() } } } Component.onCompleted: { - updateMessagelist() + chatPage.updateMessagelist() } background: Rectangle { @@ -111,7 +111,7 @@ Kirigami.ScrollablePage { text: qsTr("Send") enabled: messageField.length > 0 onClicked: { - context.sendTextMessage(chatId, messageField.text) + chatPage.context.sendTextMessage(chatPage.chatId, messageField.text) messageField.text = "" } } diff --git a/qml/Message.qml b/qml/Message.qml index 7e12996..2c67cff 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -132,7 +132,7 @@ RowLayout { spacing: Kirigami.Units.smallSpacing Rectangle { width: Kirigami.Units.smallSpacing - color: quoteFrom ? quoteFrom.color : "black" + color: messageObject.quoteFrom ? messageObject.quoteFrom.color : "black" Layout.fillHeight: true } TextEdit { -- cgit v1.2.3-70-g09d2