mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Improve code on ShareNode
This commit is contained in:
+3
-3
@@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user