From 321c19b7415e837acc4e66d535e82518618bc096 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 6 Jun 2021 17:29:35 +0300 Subject: ChatPage: update when DC_EVENT_MSGS_CHANGED is reported for chat ID 0 0 means multiple chats have changed, for example when a message is moved from contact requests to its own chat. --- qml/ChatPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qml') diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index f8c776e..dfa5a4c 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -68,7 +68,7 @@ Kirigami.ScrollablePage { function onMessagesChanged(accountId, chatId, msgId) { console.log("Messages changed for chat " + chatId) - if (chatId == chatPage.chatId) { + if (chatId == chatPage.chatId || chatId == 0) { chatPage.updateMessagelist() } } -- cgit v1.2.3-70-g09d2