mirror of https://github.com/status-im/StatusQ.git
fix(StatusChatList): ensure badge is also shown for one to one messages
This commit is contained in:
parent
096d4148cd
commit
ac5c84529e
|
@ -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