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 9c17ec2f2f
commit 2ab9c564ba

View File

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