aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-22 13:50:47 +0300
committerlink2xt <link2xt@testrun.org>2021-02-22 13:50:47 +0300
commit1e07bc605fa69c533f1f4e0790b3870447da8e17 (patch)
tree884de069569a4773b8f986186633ebf443bf0b31
parent9929bdd5e37019c4c06df60f6491c3dfae691148 (diff)
downloadkdeltachat-1e07bc605fa69c533f1f4e0790b3870447da8e17.tar.gz
kdeltachat-1e07bc605fa69c533f1f4e0790b3870447da8e17.zip
chatlist: display number of fresh messages
-rw-r--r--qml/ChatlistPage.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml
index 911ab48..d998688 100644
--- a/qml/ChatlistPage.qml
+++ b/qml/ChatlistPage.qml
@@ -45,7 +45,8 @@ Kirigami.Page {
msgId: chatlist.getMsgId(i),
username: (summary.text1 != "" ? summary.text1 + ": " : "") + summary.text2,
avatarSource: profileImage ? "file:" + profileImage : "",
- chatName: chat.name
+ chatName: chat.name,
+ freshMsgCnt: chatlistPage.context.getFreshMsgCnt(chatId)
}
let j;
@@ -110,6 +111,11 @@ Kirigami.Page {
name: model.chatName
implicitWidth: height
}
+
+ trailing: Label {
+ text: model.freshMsgCnt
+ visible: model.freshMsgCnt > 0
+ }
}
ScrollBar.vertical: ScrollBar {}