mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Code cleanup, remove dead code and fix compilation issue
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+2
-3
@@ -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
|
||||
|
||||
-3
@@ -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()
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ private fun SpaceViewContent(
|
||||
onRoomClick(spaceRoom.roomId)
|
||||
},
|
||||
onLongClick = {
|
||||
|
||||
// TODO
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user