Use context parameter for the parentNode

This commit is contained in:
Benoit Marty 2025-10-30 13:02:20 +01:00 committed by Benoit Marty
parent 02dc71c4c3
commit f174084942
138 changed files with 450 additions and 375 deletions

View file

@ -16,7 +16,8 @@ import io.element.android.libraries.architecture.createNode
@ContributesBinding(AppScope::class)
class DefaultStartChatEntryPoint : StartChatEntryPoint {
override fun createNode(parentNode: Node, buildContext: BuildContext, callback: StartChatEntryPoint.Callback): Node {
context(parentNode: Node)
override fun createNode(buildContext: BuildContext, callback: StartChatEntryPoint.Callback): Node {
return parentNode.createNode<StartChatFlowNode>(buildContext, listOf(callback))
}
}

View file

@ -80,7 +80,6 @@ class StartChatFlowNode(
}
}
createRoomEntryPoint.createNode(
parentNode = this,
buildContext = buildContext,
callback = callback,
)