Code quality
This commit is contained in:
parent
63706c0558
commit
c24d5fc608
7 changed files with 7 additions and 16 deletions
|
|
@ -191,11 +191,6 @@ class RustMatrixClient(
|
|||
innerSpaceService = innerSpaceService,
|
||||
sessionCoroutineScope = sessionCoroutineScope,
|
||||
sessionDispatcher = sessionDispatcher,
|
||||
//roomListFactory = RoomListFactory(
|
||||
// innerRoomListService = innerRoomListService,
|
||||
// sessionCoroutineScope = sessionCoroutineScope,
|
||||
//),
|
||||
//roomSyncSubscriber = roomSyncSubscriber,
|
||||
)
|
||||
|
||||
private val verificationService = RustSessionVerificationService(
|
||||
|
|
|
|||
|
|
@ -84,9 +84,7 @@ class RustSpaceService(
|
|||
private fun MutableList<SpaceRoom>.applyUpdate(update: SpaceListUpdate) {
|
||||
when (update) {
|
||||
is SpaceListUpdate.Append -> {
|
||||
val newSpaces = update.values.map { it ->
|
||||
it.let(mapper::map)
|
||||
}
|
||||
val newSpaces = update.values.map(mapper::map)
|
||||
addAll(newSpaces)
|
||||
}
|
||||
SpaceListUpdate.Clear -> clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue