aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {}