From d568523b8b17932ca551866800fec47cb1500f26 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Wed, 14 Apr 2021 16:54:36 +0200 Subject: [PATCH] Add back low-priority section for DMs Change-Id: I63871b90a8541d2d8f9c87374176f95f6278882e --- .../app/features/home/room/list/RoomListViewModel.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt index 082da5ac64..dc48cd65d9 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/list/RoomListViewModel.kt @@ -96,10 +96,16 @@ class RoomListViewModel @Inject constructor( it.roomTagQueryFilter = RoomTagQueryFilter(true, null, null) } - // TODO-SC why no low priority? addSection(sections, R.string.bottom_action_people_x) { it.memberships = listOf(Membership.JOIN) 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) { addSection(sections, R.string.invitations_header, true) {