mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Rename eventHandler to handleEvent
This commit is contained in:
+2
-2
@@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user