Improve code on ShareNode
This commit is contained in:
parent
d7109be89e
commit
70cbf3c090
2 changed files with 5 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ class ShareNode(
|
|||
}
|
||||
|
||||
override fun onCancel() {
|
||||
navigateUp()
|
||||
onShareDone(emptyList())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -82,12 +82,12 @@ class ShareNode(
|
|||
val state = presenter.present()
|
||||
ShareView(
|
||||
state = state,
|
||||
onShareSuccess = ::onShareSuccess,
|
||||
onShareSuccess = ::onShareDone,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private fun onShareSuccess(roomIds: List<RoomId>) {
|
||||
private fun onShareDone(roomIds: List<RoomId>) {
|
||||
callbacks.forEach { it.onDone(roomIds) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue