mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix long click not working on pinned events timeline (#3940)
This commit is contained in:
committed by
GitHub
parent
41b12119b0
commit
a080444c23
+3
-1
@@ -231,6 +231,7 @@ private fun PinnedMessagesListLoaded(
|
|||||||
event = event,
|
event = event,
|
||||||
timelineProtectionState = state.timelineProtectionState,
|
timelineProtectionState = state.timelineProtectionState,
|
||||||
onContentClick = { onEventClick(event) },
|
onContentClick = { onEventClick(event) },
|
||||||
|
onLongClick = { onMessageLongClick(event) },
|
||||||
onLinkClick = onLinkClick,
|
onLinkClick = onLinkClick,
|
||||||
modifier = contentModifier,
|
modifier = contentModifier,
|
||||||
onContentLayoutChange = onContentLayoutChange
|
onContentLayoutChange = onContentLayoutChange
|
||||||
@@ -247,6 +248,7 @@ private fun TimelineItemEventContentViewWrapper(
|
|||||||
timelineProtectionState: TimelineProtectionState,
|
timelineProtectionState: TimelineProtectionState,
|
||||||
onContentClick: () -> Unit,
|
onContentClick: () -> Unit,
|
||||||
onLinkClick: (String) -> Unit,
|
onLinkClick: (String) -> Unit,
|
||||||
|
onLongClick: (() -> Unit)?,
|
||||||
onContentLayoutChange: (ContentAvoidingLayoutData) -> Unit,
|
onContentLayoutChange: (ContentAvoidingLayoutData) -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
@@ -265,7 +267,7 @@ private fun TimelineItemEventContentViewWrapper(
|
|||||||
eventSink = { },
|
eventSink = { },
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
onContentClick = onContentClick,
|
onContentClick = onContentClick,
|
||||||
onLongClick = null,
|
onLongClick = onLongClick,
|
||||||
onContentLayoutChange = onContentLayoutChange
|
onContentLayoutChange = onContentLayoutChange
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user