This commit is contained in:
Benoit Marty 2021-07-19 18:16:36 +02:00
parent a34d445215
commit ca2794193c
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ class GroupRoomListSectionBuilder(
val appStateHandler: AppStateHandler, val appStateHandler: AppStateHandler,
private val autoAcceptInvites: AutoAcceptInvites, private val autoAcceptInvites: AutoAcceptInvites,
val onDisposable: (Disposable) -> Unit, val onDisposable: (Disposable) -> Unit,
val onUdpatable: (UpdatableLivePageResult) -> Unit val onUpdatable: (UpdatableLivePageResult) -> Unit
) : RoomListSectionBuilder { ) : RoomListSectionBuilder {
override fun buildSections(mode: RoomListDisplayMode): List<RoomsSection> { override fun buildSections(mode: RoomListDisplayMode): List<RoomsSection> {
@ -69,7 +69,7 @@ class GroupRoomListSectionBuilder(
val name = stringProvider.getString(R.string.bottom_action_rooms) val name = stringProvider.getString(R.string.bottom_action_rooms)
session.getFilteredPagedRoomSummariesLive(qpm) session.getFilteredPagedRoomSummariesLive(qpm)
.let { updatableFilterLivePageResult -> .let { updatableFilterLivePageResult ->
onUdpatable(updatableFilterLivePageResult) onUpdatable(updatableFilterLivePageResult)
sections.add(RoomsSection(name, updatableFilterLivePageResult.livePagedList)) sections.add(RoomsSection(name, updatableFilterLivePageResult.livePagedList))
} }
} }

View File

@ -54,7 +54,7 @@ class SpaceRoomListSectionBuilder(
private val suggestedRoomJoiningState: LiveData<Map<String, Async<Unit>>>, private val suggestedRoomJoiningState: LiveData<Map<String, Async<Unit>>>,
private val autoAcceptInvites: AutoAcceptInvites, private val autoAcceptInvites: AutoAcceptInvites,
val onDisposable: (Disposable) -> Unit, val onDisposable: (Disposable) -> Unit,
val onUdpatable: (UpdatableLivePageResult) -> Unit, val onUpdatable: (UpdatableLivePageResult) -> Unit,
val onlyOrphansInHome: Boolean = false val onlyOrphansInHome: Boolean = false
) : RoomListSectionBuilder { ) : RoomListSectionBuilder {
@ -84,7 +84,7 @@ class SpaceRoomListSectionBuilder(
val name = stringProvider.getString(R.string.bottom_action_rooms) val name = stringProvider.getString(R.string.bottom_action_rooms)
session.getFilteredPagedRoomSummariesLive(qpm) session.getFilteredPagedRoomSummariesLive(qpm)
.let { updatableFilterLivePageResult -> .let { updatableFilterLivePageResult ->
onUdpatable(updatableFilterLivePageResult) onUpdatable(updatableFilterLivePageResult)
sections.add(RoomsSection(name, updatableFilterLivePageResult.livePagedList)) sections.add(RoomsSection(name, updatableFilterLivePageResult.livePagedList))
} }
} }