fix(StatusChatList): ensure badge is also shown for one to one messages
This commit is contained in:
parent
78ed4642d6
commit
31023aa462
|
@ -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 || ""
|
||||||
|
|
Loading…
Reference in New Issue