Rename handleEvents to handleEvent

This commit is contained in:
Benoit Marty 2025-11-07 12:20:33 +01:00
parent 6acd0ed687
commit 7ad9c8f687
94 changed files with 182 additions and 182 deletions

View file

@ -52,7 +52,7 @@ class KnockRequestsBannerPresenter(
}
}
fun handleEvents(event: KnockRequestsBannerEvents) {
fun handleEvent(event: KnockRequestsBannerEvents) {
when (event) {
is KnockRequestsBannerEvents.AcceptSingleRequest -> {
sessionCoroutineScope.acceptSingleKnockRequest(
@ -73,7 +73,7 @@ class KnockRequestsBannerPresenter(
displayAcceptError = showAcceptError.value,
canAccept = permissions.canAccept,
isVisible = shouldShowBanner,
eventSink = ::handleEvents,
eventSink = ::handleEvent,
)
}

View file

@ -38,7 +38,7 @@ class KnockRequestsListPresenter(
val coroutineScope = rememberCoroutineScope()
fun handleEvents(event: KnockRequestsListEvents) {
fun handleEvent(event: KnockRequestsListEvents) {
when (event) {
KnockRequestsListEvents.AcceptAll -> {
currentAction = KnockRequestsAction.AcceptAll
@ -73,7 +73,7 @@ class KnockRequestsListPresenter(
currentAction = currentAction,
permissions = permissions,
asyncAction = asyncAction.value,
eventSink = ::handleEvents
eventSink = ::handleEvent,
)
}