diff options
author | link2xt <link2xt@testrun.org> | 2021-07-26 00:07:28 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-07-26 00:08:11 +0300 |
commit | dfc476b29e4c5955313eeb5e5ec5bef9c23c9239 (patch) | |
tree | fb045bd8adc1ebe6db8e44acff7c43341c403838 /qml | |
parent | cbedf31adbbde68e72f3e2544d28c1048ecb3305 (diff) | |
download | kdeltachat-dfc476b29e4c5955313eeb5e5ec5bef9c23c9239.tar.gz kdeltachat-dfc476b29e4c5955313eeb5e5ec5bef9c23c9239.zip |
Show "NEW" badge for contact requests
Diffstat (limited to 'qml')
-rw-r--r-- | qml/ChatlistPage.qml | 7 |
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 |