mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
lint
This commit is contained in:
parent
cf581ecfcf
commit
b6f0f12515
1 changed files with 3 additions and 3 deletions
|
@ -209,8 +209,8 @@ class RoomListViewModel @Inject constructor(initialState: RoomListViewState,
|
|||
_viewEvents.post(RoomListViewEvents.SelectRoom(action.roomSummary))
|
||||
}
|
||||
|
||||
private fun handleToggleSection(section: RoomsSection) {
|
||||
sections.find { it.sectionName == section.sectionName }
|
||||
private fun handleToggleSection(roomSection: RoomsSection) {
|
||||
sections.find { it.sectionName == roomSection.sectionName }
|
||||
?.let { section ->
|
||||
section.isExpanded.postValue(!section.isExpanded.value.orFalse())
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ class RoomListViewModel @Inject constructor(initialState: RoomListViewState,
|
|||
}
|
||||
}
|
||||
|
||||
private fun handleMarkAllRoomsRead() = withState { state ->
|
||||
private fun handleMarkAllRoomsRead() = withState { _ ->
|
||||
// state.asyncFilteredRooms.invoke()
|
||||
// ?.flatMap { it.value }
|
||||
// ?.filter { it.membership == Membership.JOIN }
|
||||
|
|
Loading…
Reference in a new issue