fix(@desktop/chat): sort display names in UserListPanel

fixes: #6185
This commit is contained in:
Patryk Osmaczko 2022-07-21 11:03:51 +02:00 committed by osmaczko
parent c1872b4e1d
commit eeb77aeb51
1 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,8 @@ import utils 1.0
import "../controls" import "../controls"
import SortFilterProxyModel 0.2
Item { Item {
id: root id: root
anchors.fill: parent anchors.fill: parent
@ -50,7 +52,13 @@ Item {
bottomMargin: Style.current.bigPadding bottomMargin: Style.current.bigPadding
} }
model: usersModule.model model: SortFilterProxyModel {
sourceModel: usersModule.model
sorters: StringSorter {
roleName: "displayName"
caseSensitivity: Qt.CaseInsensitive
}
}
section.property: "onlineStatus" section.property: "onlineStatus"
section.delegate: (root.width > 58) ? sectionDelegateComponent : null section.delegate: (root.width > 58) ? sectionDelegateComponent : null
delegate: StatusMemberListItem { delegate: StatusMemberListItem {