Rename fun in Callback for clarity.
This commit is contained in:
parent
45b5783b23
commit
09a18ad7ca
104 changed files with 658 additions and 664 deletions
|
|
@ -29,7 +29,7 @@ class RoomDirectoryNode(
|
|||
) : Node(buildContext, plugins = plugins) {
|
||||
private fun onResultClick(roomDescription: RoomDescription) {
|
||||
plugins<RoomDirectoryEntryPoint.Callback>().forEach {
|
||||
it.onResultClick(roomDescription)
|
||||
it.navigateToRoom(roomDescription)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class DefaultRoomDirectoryEntryPointTest {
|
|||
)
|
||||
}
|
||||
val callback = object : RoomDirectoryEntryPoint.Callback {
|
||||
override fun onResultClick(roomDescription: RoomDescription) = lambdaError()
|
||||
override fun navigateToRoom(roomDescription: RoomDescription) = lambdaError()
|
||||
}
|
||||
val result = entryPoint.nodeBuilder(parentNode, BuildContext.root(null))
|
||||
.callback(callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue