Rename handleEvents to handleEvent

This commit is contained in:
Benoit Marty
2025-11-07 12:20:33 +01:00
parent 4283fe8634
commit cf19daf3a4
94 changed files with 182 additions and 182 deletions

View File

@@ -96,7 +96,7 @@ class CreatePollPresenter(
val scope = rememberCoroutineScope()
fun handleEvents(event: CreatePollEvents) {
fun handleEvent(event: CreatePollEvents) {
when (event) {
is CreatePollEvents.Save -> scope.launch {
if (canSave) {
@@ -183,7 +183,7 @@ class CreatePollPresenter(
pollKind = poll.pollKind,
showBackConfirmation = showBackConfirmation,
showDeleteConfirmation = showDeleteConfirmation,
eventSink = ::handleEvents,
eventSink = ::handleEvent,
)
}

View File

@@ -62,7 +62,7 @@ class PollHistoryPresenter(
}
}
val coroutineScope = rememberCoroutineScope()
fun handleEvents(event: PollHistoryEvents) {
fun handleEvent(event: PollHistoryEvents) {
when (event) {
is PollHistoryEvents.LoadMore -> {
coroutineScope.loadMore(timeline)
@@ -88,7 +88,7 @@ class PollHistoryPresenter(
hasMoreToLoad = paginationState.hasMoreToLoad,
pollHistoryItems = pollHistoryItems,
activeFilter = activeFilter,
eventSink = ::handleEvents,
eventSink = ::handleEvent,
)
}