Code quality

This commit is contained in:
Benoit Marty 2025-09-04 14:35:28 +02:00 committed by Benoit Marty
parent 63706c0558
commit c24d5fc608
7 changed files with 7 additions and 16 deletions

View file

@ -191,11 +191,6 @@ class RustMatrixClient(
innerSpaceService = innerSpaceService,
sessionCoroutineScope = sessionCoroutineScope,
sessionDispatcher = sessionDispatcher,
//roomListFactory = RoomListFactory(
// innerRoomListService = innerRoomListService,
// sessionCoroutineScope = sessionCoroutineScope,
//),
//roomSyncSubscriber = roomSyncSubscriber,
)
private val verificationService = RustSessionVerificationService(

View file

@ -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()