Rename eventHandler to handleEvent

This commit is contained in:
Benoit Marty
2025-11-07 12:22:30 +01:00
parent 7ad9c8f687
commit 19d0eb7557
@@ -59,7 +59,7 @@ class ChooseSelfVerificationModePresenter(
val directLogoutState = directLogoutPresenter.present() val directLogoutState = directLogoutPresenter.present()
fun eventHandler(event: ChooseSelfVerificationModeEvent) { fun handleEvent(event: ChooseSelfVerificationModeEvent) {
when (event) { when (event) {
ChooseSelfVerificationModeEvent.SignOut -> directLogoutState.eventSink(DirectLogoutEvents.Logout(ignoreSdkError = false)) ChooseSelfVerificationModeEvent.SignOut -> directLogoutState.eventSink(DirectLogoutEvents.Logout(ignoreSdkError = false))
} }
@@ -68,7 +68,7 @@ class ChooseSelfVerificationModePresenter(
return ChooseSelfVerificationModeState( return ChooseSelfVerificationModeState(
buttonsState = buttonsState, buttonsState = buttonsState,
directLogoutState = directLogoutState, directLogoutState = directLogoutState,
eventSink = ::eventHandler, eventSink = ::handleEvent,
) )
} }
} }