diff options
author | link2xt <link2xt@testrun.org> | 2021-02-22 13:50:47 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-02-22 13:50:47 +0300 |
commit | 1e07bc605fa69c533f1f4e0790b3870447da8e17 (patch) | |
tree | 884de069569a4773b8f986186633ebf443bf0b31 | |
parent | 9929bdd5e37019c4c06df60f6491c3dfae691148 (diff) | |
download | kdeltachat-1e07bc605fa69c533f1f4e0790b3870447da8e17.tar.gz kdeltachat-1e07bc605fa69c533f1f4e0790b3870447da8e17.zip |
chatlist: display number of fresh messages
-rw-r--r-- | qml/ChatlistPage.qml | 8 |
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 {} |