From b6f0f12515b3cf64a47c6965a81e609e387f07af Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 31 Mar 2021 13:01:25 +0200 Subject: [PATCH] lint --- .../vector/app/features/home/room/list/RoomListViewModel.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 626d058c65..4b1af3cbaf 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 @@ -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 }