From 6c9ae331e324edc20dd6d9bcf7c64db20b41c46c Mon Sep 17 00:00:00 2001 From: Florian Renaud Date: Thu, 15 Sep 2022 15:16:51 +0200 Subject: [PATCH] transform list to iterable --- .../im/vector/app/features/home/room/list/RoomListViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9332acc0c9..8283447a4d 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 @@ -173,7 +173,7 @@ class RoomListViewModel @AssistedInject constructor( return session.getRoom(roomId)?.stateService()?.isPublic().orFalse() } - fun deleteLocalRooms(roomsIds: List) { + fun deleteLocalRooms(roomsIds: Iterable) { viewModelScope.launch { roomsIds.forEach { session.roomService().deleteLocalRoom(it)