Rename eventHandler to handleEvent

This commit is contained in:
Benoit Marty 2025-11-07 12:22:30 +01:00
parent cf19daf3a4
commit e0f0dbec96

View file

@ -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,
) )
} }
} }