Small change after PR review

This commit is contained in:
ganfra 2023-07-25 18:41:43 +02:00
parent bbbee5a6d9
commit ba12fbc9e3

View file

@ -158,10 +158,7 @@ class RustMatrixClient constructor(
roomSummaryDataSource.awaitAllRoomsAreLoaded()
cachedPairOfRoom = pairOfRoom(roomId)
}
return@withContext if (cachedPairOfRoom == null) {
null
} else {
val (roomListItem, fullRoom) = cachedPairOfRoom
cachedPairOfRoom?.let { (roomListItem, fullRoom) ->
RustMatrixRoom(
sessionId = sessionId,
roomListItem = roomListItem,