transform list to iterable

This commit is contained in:
Florian Renaud 2022-09-15 15:16:51 +02:00
parent e792228879
commit 6c9ae331e3
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class RoomListViewModel @AssistedInject constructor(
return session.getRoom(roomId)?.stateService()?.isPublic().orFalse() return session.getRoom(roomId)?.stateService()?.isPublic().orFalse()
} }
fun deleteLocalRooms(roomsIds: List<String>) { fun deleteLocalRooms(roomsIds: Iterable<String>) {
viewModelScope.launch { viewModelScope.launch {
roomsIds.forEach { roomsIds.forEach {
session.roomService().deleteLocalRoom(it) session.roomService().deleteLocalRoom(it)