From ac5c84529e192a8dc2456bd0fea60aab3d236e3c Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 9 Jul 2021 16:08:02 +0200 Subject: [PATCH] fix(StatusChatList): ensure badge is also shown for one to one messages --- src/StatusQ/Components/StatusChatList.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusChatList.qml b/src/StatusQ/Components/StatusChatList.qml index 006a5a9a..18f16946 100644 --- a/src/StatusQ/Components/StatusChatList.qml +++ b/src/StatusQ/Components/StatusChatList.qml @@ -50,7 +50,9 @@ Column { muted: !!model.muted hasUnreadMessages: !!model.hasUnreadMessages || model.unviewedMessagesCount > 0 hasMention: model.mentionsCount > 0 - badge.value: model.mentionsCount || 0 + badge.value: model.chatType === StatusChatListItem.Type.OneToOneChat ? + model.unviewedMessagesCount || 0 : + model.mentionsCount || 0 selected: (model.chatId || model.id) === statusChatList.selectedChatId icon.color: model.color || ""