aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-06 17:29:35 +0300
committerlink2xt <link2xt@testrun.org>2021-06-06 17:29:35 +0300
commit321c19b7415e837acc4e66d535e82518618bc096 (patch)
treeac5edbf0302029297234a258ab2411eccfb337f6
parent673447241e20dff4bfe7ddb13805a5bd6e47a5ce (diff)
downloadkdeltachat-321c19b7415e837acc4e66d535e82518618bc096.tar.gz
kdeltachat-321c19b7415e837acc4e66d535e82518618bc096.zip
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.
-rw-r--r--qml/ChatPage.qml2
1 files changed, 1 insertions, 1 deletions
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()
}
}