mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Rename fun in Callback for clarity.
This commit is contained in:
committed by
Benoit Marty
parent
353c00e032
commit
43972dba68
+1
-1
@@ -27,7 +27,7 @@ class LogoutNode(
|
||||
private val presenter: LogoutPresenter,
|
||||
) : Node(buildContext, plugins = plugins) {
|
||||
private fun onChangeRecoveryKeyClick() {
|
||||
plugins<LogoutEntryPoint.Callback>().forEach { it.onChangeRecoveryKeyClick() }
|
||||
plugins<LogoutEntryPoint.Callback>().forEach { it.navigateToSecureBackup() }
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ class DefaultLogoutEntryPointTest {
|
||||
)
|
||||
}
|
||||
val callback = object : LogoutEntryPoint.Callback {
|
||||
override fun onChangeRecoveryKeyClick() = lambdaError()
|
||||
override fun navigateToSecureBackup() = lambdaError()
|
||||
}
|
||||
val result = entryPoint.nodeBuilder(parentNode, BuildContext.root(null))
|
||||
.callback(callback)
|
||||
|
||||
Reference in New Issue
Block a user