mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-24 01:48:31 +03:00
Properly apply null-space filter to favorites as well
Change-Id: Ibb8b8036fa5a065b40d01499221a8e6c392e1a7e
This commit is contained in:
parent
51756a9795
commit
fa79bc3e38
1 changed files with 15 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue