From 336564d8b548713a276d6ac330407d263cb61f36 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 5 Jul 2023 15:20:34 +0200 Subject: [PATCH] Ensure the latest version of `timelineItem` is used. (other methods have been removed in #771) --- .../android/features/messages/impl/timeline/TimelineView.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelineView.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelineView.kt index 443b77a8cb..3e6ba59c8d 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelineView.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelineView.kt @@ -170,10 +170,6 @@ fun TimelineItemRow( onClick(timelineItem) } - fun onSwipeToReply() { - onSwipeToReply(timelineItem) - } - fun onLongClick() { onLongClick(timelineItem) } @@ -197,7 +193,7 @@ fun TimelineItemRow( inReplyToClick = inReplyToClick, onReactionClick = onReactionClick, onTimestampClicked = onTimestampClicked, - onSwipeToReply = ::onSwipeToReply, + onSwipeToReply = { onSwipeToReply(timelineItem) }, modifier = modifier, ) }