Properly apply null-space filter to favorites as well

Change-Id: Ibb8b8036fa5a065b40d01499221a8e6c392e1a7e
This commit is contained in:
SpiritCroc 2021-12-12 10:49:50 +01:00
parent 51756a9795
commit fa79bc3e38

View file

@ -178,7 +178,11 @@ class RoomListSectionBuilderSpace(
activeSpaceAwareQueries,
R.string.bottom_action_favourites,
false,
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL,
spaceFilterStrategy = if (onlyOrphansInHome) {
RoomListViewModel.SpaceFilterStrategy.ORPHANS_IF_SPACE_NULL
} else {
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL
},
explicitSpaceId = explicitSpaceId,
) {
it.memberships = listOf(Membership.JOIN)
@ -259,7 +263,11 @@ class RoomListSectionBuilderSpace(
activeSpaceAwareQueries,
R.string.bottom_action_favourites,
false,
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL,
spaceFilterStrategy = if (onlyOrphansInHome) {
RoomListViewModel.SpaceFilterStrategy.ORPHANS_IF_SPACE_NULL
} else {
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL
},
explicitSpaceId = explicitSpaceId,
) {
it.memberships = listOf(Membership.JOIN)
@ -410,7 +418,11 @@ class RoomListSectionBuilderSpace(
activeSpaceAwareQueries,
R.string.bottom_action_favourites,
false,
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL,
spaceFilterStrategy = if (onlyOrphansInHome) {
RoomListViewModel.SpaceFilterStrategy.ORPHANS_IF_SPACE_NULL
} else {
RoomListViewModel.SpaceFilterStrategy.ALL_IF_SPACE_NULL
},
explicitSpaceId = explicitSpaceId
) {
it.memberships = listOf(Membership.JOIN)