From 415e70dc80058fed522f5e5d4db1cb53ab44b01c Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 16 Mar 2021 04:10:10 +0300 Subject: ChatPage: specify onIncomingMessage argument Otherwise chatId is compared to itself --- qml/ChatPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index e084efe..d0b0318 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -61,7 +61,7 @@ Kirigami.ScrollablePage { function onChatModified() { console.log("CHAT MODIFIED!") } - function onIncomingMessage() { + function onIncomingMessage(accountId, chatId, msgId) { console.log("Incoming message for chat " + chatId) if (chatId == chatPage.chatId) { -- cgit v1.2.3-70-g09d2