Small change after PR review
This commit is contained in:
parent
bbbee5a6d9
commit
ba12fbc9e3
1 changed files with 1 additions and 4 deletions
|
|
@ -158,10 +158,7 @@ class RustMatrixClient constructor(
|
||||||
roomSummaryDataSource.awaitAllRoomsAreLoaded()
|
roomSummaryDataSource.awaitAllRoomsAreLoaded()
|
||||||
cachedPairOfRoom = pairOfRoom(roomId)
|
cachedPairOfRoom = pairOfRoom(roomId)
|
||||||
}
|
}
|
||||||
return@withContext if (cachedPairOfRoom == null) {
|
cachedPairOfRoom?.let { (roomListItem, fullRoom) ->
|
||||||
null
|
|
||||||
} else {
|
|
||||||
val (roomListItem, fullRoom) = cachedPairOfRoom
|
|
||||||
RustMatrixRoom(
|
RustMatrixRoom(
|
||||||
sessionId = sessionId,
|
sessionId = sessionId,
|
||||||
roomListItem = roomListItem,
|
roomListItem = roomListItem,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue