Add back low-priority section for DMs

Change-Id: I63871b90a8541d2d8f9c87374176f95f6278882e
This commit is contained in:
SpiritCroc 2021-04-14 16:54:36 +02:00
parent 3bfae2a28b
commit d568523b8b
1 changed files with 7 additions and 1 deletions

View File

@ -96,10 +96,16 @@ class RoomListViewModel @Inject constructor(
it.roomTagQueryFilter = RoomTagQueryFilter(true, null, null) it.roomTagQueryFilter = RoomTagQueryFilter(true, null, null)
} }
// TODO-SC why no low priority?
addSection(sections, R.string.bottom_action_people_x) { addSection(sections, R.string.bottom_action_people_x) {
it.memberships = listOf(Membership.JOIN) it.memberships = listOf(Membership.JOIN)
it.roomCategoryFilter = RoomCategoryFilter.ONLY_DM it.roomCategoryFilter = RoomCategoryFilter.ONLY_DM
it.roomTagQueryFilter = RoomTagQueryFilter(false, false, null)
}
addSection(sections, R.string.low_priority_header) {
it.memberships = listOf(Membership.JOIN)
it.roomCategoryFilter = RoomCategoryFilter.ONLY_DM
it.roomTagQueryFilter = RoomTagQueryFilter(null, true, null)
} }
} else if (initialState.displayMode == RoomListDisplayMode.ROOMS) { } else if (initialState.displayMode == RoomListDisplayMode.ROOMS) {
addSection(sections, R.string.invitations_header, true) { addSection(sections, R.string.invitations_header, true) {