Fix more warnings

This commit is contained in:
Benoit Marty
2022-12-08 18:48:20 +01:00
parent 53fe139b92
commit 2f595f8ccc
2 changed files with 0 additions and 18 deletions

View File

@@ -1,15 +0,0 @@
package io.element.android.x.matrix
import android.util.Log
import org.matrix.rustcomponents.sdk.Client
import org.matrix.rustcomponents.sdk.Room
class RoomWrapper(
private val client: Client
) {
fun getRoom(roomId: String): Room? {
val rooms = client.rooms()
Log.d(LOG_TAG, "We have ${rooms.size} rooms")
return rooms.firstOrNull { it.id() == roomId }
}
}

View File

@@ -1,6 +1,3 @@
@file:OptIn(ExperimentalCoroutinesApi::class)
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.ProducerScope
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.callbackFlow