Use eventSink method reference in TimelinePresenter.kt (#1428)

Has been changed in https://github.com/vector-im/element-x-android/pull/1172 but in general method references should always be preferred to lambdas in composable functions (because they have higher stability guarantees).
This commit is contained in:
Marco Romano 2023-09-25 21:56:41 +02:00 committed by GitHub
parent ee901c70a2
commit 7464cbb769
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ class TimelinePresenter @Inject constructor(
paginationState = paginationState,
timelineItems = timelineItems,
hasNewItems = hasNewItems.value,
eventSink = { handleEvents(it) }
eventSink = ::handleEvents
)
}