Browse Source

Small change after PR review

pull/960/head
ganfra 1 year ago
parent
commit
506b473d4d
  1. 5
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt

5
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt

@ -158,10 +158,7 @@ class RustMatrixClient constructor( @@ -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,

Loading…
Cancel
Save