File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
api/src/main/kotlin/io/element/android/features/space/api
impl/src/main/kotlin/io/element/android/features/space/impl Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import com.bumble.appyx.core.modality.BuildContext
11
11
import com.bumble.appyx.core.node.Node
12
12
import com.bumble.appyx.core.plugin.Plugin
13
13
import io.element.android.libraries.architecture.FeatureEntryPoint
14
+ import io.element.android.libraries.architecture.NodeInputs
14
15
import io.element.android.libraries.matrix.api.core.RoomId
15
16
16
17
interface SpaceEntryPoint : FeatureEntryPoint {
@@ -27,7 +28,7 @@ interface SpaceEntryPoint : FeatureEntryPoint {
27
28
28
29
data class Inputs (
29
30
val roomId : RoomId
30
- ) : Plugin
31
+ ) : NodeInputs
31
32
32
33
interface Callback : Plugin {
33
34
fun onOpenRoom (roomId : RoomId )
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import dev.zacsweers.metro.Assisted
16
16
import dev.zacsweers.metro.Inject
17
17
import io.element.android.annotations.ContributesNode
18
18
import io.element.android.features.space.api.SpaceEntryPoint
19
+ import io.element.android.libraries.architecture.inputs
19
20
import io.element.android.libraries.di.SessionScope
20
21
21
22
@ContributesNode(SessionScope ::class )
@@ -25,7 +26,7 @@ class SpaceNode(
25
26
@Assisted plugins : List <Plugin >,
26
27
presenterFactory : SpacePresenter .Factory ,
27
28
) : Node(buildContext, plugins = plugins) {
28
- private val inputs = plugins.filterIsInstance< SpaceEntryPoint .Inputs >().single ()
29
+ private val inputs: SpaceEntryPoint .Inputs = inputs ()
29
30
private val callback = plugins.filterIsInstance<SpaceEntryPoint .Callback >().single()
30
31
private val presenter = presenterFactory.create(inputs)
31
32
You can’t perform that action at this time.
0 commit comments