Code cleanup, remove dead code and fix compilation issue

This commit is contained in:
Benoit Marty 2025-09-10 14:08:10 +02:00
parent f5882fef11
commit bb39a9f399
17 changed files with 13 additions and 33 deletions

View file

@ -10,7 +10,7 @@ package io.element.android.features.space.impl
import com.bumble.appyx.core.modality.BuildContext
import com.bumble.appyx.core.node.Node
import com.bumble.appyx.core.plugin.Plugin
import com.squareup.anvil.annotations.ContributesBinding
import dev.zacsweers.metro.ContributesBinding
import io.element.android.features.space.api.SpaceEntryPoint
import io.element.android.libraries.architecture.createNode
import io.element.android.libraries.di.SessionScope

View file

@ -24,9 +24,8 @@ class SpaceNode @AssistedInject constructor(
@Assisted plugins: List<Plugin>,
presenterFactory: SpacePresenter.Factory,
) : Node(buildContext, plugins = plugins) {
val inputs = plugins.filterIsInstance<SpaceEntryPoint.Inputs>().single()
val callback = plugins.filterIsInstance<SpaceEntryPoint.Callback>().single()
private val inputs = plugins.filterIsInstance<SpaceEntryPoint.Inputs>().single()
private val callback = plugins.filterIsInstance<SpaceEntryPoint.Callback>().single()
private val presenter = presenterFactory.create(inputs)
@Composable

View file

@ -35,7 +35,6 @@ class SpacePresenter(
private val client: MatrixClient,
private val seenInvitesStore: SeenInvitesStore,
) : Presenter<SpaceState> {
@AssistedFactory
interface Factory {
fun create(inputs: SpaceEntryPoint.Inputs): SpacePresenter
@ -45,11 +44,9 @@ class SpacePresenter(
@Composable
override fun present(): SpaceState {
LaunchedEffect(Unit) {
paginate()
}
val hideInvitesAvatar by remember {
client
.mediaPreviewService()

View file

@ -105,7 +105,7 @@ private fun SpaceViewContent(
onRoomClick(spaceRoom.roomId)
},
onLongClick = {
// TODO
}
)
}