Fix long click not working on pinned events timeline (#3940)
This commit is contained in:
parent
76c63bc522
commit
2c77aedb76
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue