diff options
Diffstat (limited to 'qml/ChatlistPage.qml')
-rw-r--r-- | qml/ChatlistPage.qml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index a0d171a..03b18be 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -110,7 +110,8 @@ Kirigami.ScrollablePage { avatarSource: profileImage ? "file:" + profileImage : "", chatName: chat.name, freshMsgCnt: chatlistPage.context.getFreshMsgCnt(chatId), - isContactRequest: chat.isContactRequest + isContactRequest: chat.isContactRequest, + visibility: chat.visibility } let j; @@ -221,6 +222,7 @@ Kirigami.ScrollablePage { } } + Label { text: model.isContactRequest ? "NEW" : model.freshMsgCnt visible: model.freshMsgCnt > 0 || model.isContactRequest @@ -237,6 +239,20 @@ Kirigami.ScrollablePage { radius: 0.25 * height } } + + // "Pinned" badge + Rectangle { + visible: model.visibility == 2 + color: Kirigami.Theme.alternateBackgroundColor + width: Kirigami.Units.gridUnit + height: Kirigami.Units.gridUnit + radius: 0.25 * height + Kirigami.Icon { + source: "pin" + height: Kirigami.Units.gridUnit + width: Kirigami.Units.gridUnit + } + } } } } |