aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-07-26 00:07:28 +0300
committerlink2xt <link2xt@testrun.org>2021-07-26 00:08:11 +0300
commitdfc476b29e4c5955313eeb5e5ec5bef9c23c9239 (patch)
treefb045bd8adc1ebe6db8e44acff7c43341c403838
parentcbedf31adbbde68e72f3e2544d28c1048ecb3305 (diff)
downloadkdeltachat-dfc476b29e4c5955313eeb5e5ec5bef9c23c9239.tar.gz
kdeltachat-dfc476b29e4c5955313eeb5e5ec5bef9c23c9239.zip
Show "NEW" badge for contact requests
-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