fix(StatusChatList): ensure badge is also shown for one to one messages

This commit is contained in:
Pascal Precht 2021-07-09 16:08:02 +02:00 committed by Michał Cieślak
parent 78ed4642d6
commit 31023aa462
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ Column {
muted: !!model.muted muted: !!model.muted
hasUnreadMessages: !!model.hasUnreadMessages || model.unviewedMessagesCount > 0 hasUnreadMessages: !!model.hasUnreadMessages || model.unviewedMessagesCount > 0
hasMention: model.mentionsCount > 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 selected: (model.chatId || model.id) === statusChatList.selectedChatId
icon.color: model.color || "" icon.color: model.color || ""