aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/ChatlistPage.qml')
-rw-r--r--qml/ChatlistPage.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml
index 7ba516a..8348091 100644
--- a/qml/ChatlistPage.qml
+++ b/qml/ChatlistPage.qml
@@ -95,7 +95,8 @@ Kirigami.ScrollablePage {
username: (summary.text1 != "" ? summary.text1 + ": " : "") + summary.text2,
avatarSource: profileImage ? "file:" + profileImage : "",
chatName: chat.name,
- freshMsgCnt: chatlistPage.context.getFreshMsgCnt(chatId)
+ freshMsgCnt: chatlistPage.context.getFreshMsgCnt(chatId),
+ isContactRequest: chat.isContactRequest
}
let j;
@@ -207,8 +208,8 @@ Kirigami.ScrollablePage {
}
Label {
- text: model.freshMsgCnt
- visible: model.freshMsgCnt > 0
+ text: model.isContactRequest ? "NEW" : model.freshMsgCnt
+ visible: model.freshMsgCnt > 0 || model.isContactRequest
// Align label in the center of a badge.
verticalAlignment: Text.AlignVCenter