mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Rename handleEvents to handleEvent
This commit is contained in:
+2
-2
@@ -107,7 +107,7 @@ class IncomingVerificationPresenter(
|
||||
}
|
||||
}
|
||||
|
||||
fun handleEvents(event: IncomingVerificationViewEvents) {
|
||||
fun handleEvent(event: IncomingVerificationViewEvents) {
|
||||
Timber.d("Verification user action: ${event::class.simpleName}")
|
||||
when (event) {
|
||||
IncomingVerificationViewEvents.StartVerification ->
|
||||
@@ -141,7 +141,7 @@ class IncomingVerificationPresenter(
|
||||
return IncomingVerificationState(
|
||||
step = step,
|
||||
request = verificationRequest,
|
||||
eventSink = ::handleEvents,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -92,7 +92,7 @@ class OutgoingVerificationPresenter(
|
||||
observeVerificationService()
|
||||
}
|
||||
|
||||
fun handleEvents(event: OutgoingVerificationViewEvents) {
|
||||
fun handleEvent(event: OutgoingVerificationViewEvents) {
|
||||
Timber.d("Verification user action: ${event::class.simpleName}")
|
||||
when (event) {
|
||||
// Just relay the event to the state machine
|
||||
@@ -109,7 +109,7 @@ class OutgoingVerificationPresenter(
|
||||
return OutgoingVerificationState(
|
||||
step = step,
|
||||
request = verificationRequest,
|
||||
eventSink = ::handleEvents,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user