mirror of https://github.com/status-im/StatusQ.git
feat(StatusChatList): expose hook to lazily calculate chat item names
This commit is contained in:
parent
fd7a5530cf
commit
a664f635a7
|
@ -19,6 +19,7 @@ Column {
|
|||
|
||||
property var filterFn
|
||||
property var profileImageFn
|
||||
property var chatNameFn
|
||||
|
||||
signal chatItemSelected(string id)
|
||||
signal chatItemUnmuted(string id)
|
||||
|
@ -44,7 +45,7 @@ Column {
|
|||
}
|
||||
|
||||
chatId: model.chatId || model.id
|
||||
name: model.name
|
||||
name: !!statusChatList.chatNameFn ? statusChatList.chatNameFn(model) : model.name
|
||||
type: model.chatType
|
||||
muted: !!model.muted
|
||||
hasUnreadMessages: !!model.hasUnreadMessages || model.unviewedMessagesCount > 0
|
||||
|
|
Loading…
Reference in New Issue