Fix room categories sorting

This commit is contained in:
miruka 2019-07-07 22:25:30 -04:00
parent b02fc11903
commit fcd492ff2d
3 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,4 @@
- room doesn't change category when accept/reject invite - room doesn't change category when accept/reject invite
- forget doesn't delete
- "rejoin" leftbanner button if room is public - "rejoin" leftbanner button if room is public
- daybreak color - daybreak color

View File

@ -1,4 +1,11 @@
import QtQuick 2.7 import QtQuick 2.7
import SortFilterProxyModel 0.2
import "../Base" import "../Base"
HListModel {} HListModel {
sorters: [
FilterSorter { ValueFilter { roleName: "name"; value: "Invites" } },
FilterSorter { ValueFilter { roleName: "name"; value: "Rooms" } },
FilterSorter { ValueFilter { roleName: "name"; value: "Left" } }
]
}

View File

@ -14,12 +14,6 @@ HListView {
roleName: "userId" roleName: "userId"
value: userId value: userId
} }
sorters: FilterSorter {
ValueFilter { roleName: "name"; value: "Invites" }
ValueFilter { roleName: "name"; value: "Rooms" }
ValueFilter { roleName: "name"; value: "Left" }
}
} }
delegate: RoomCategoryDelegate {} delegate: RoomCategoryDelegate {}