mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Add missing content when canReply is false.
This commit is contained in:
committed by
Benoit Marty
parent
1bc13d16d9
commit
1c7c8e6c9a
+14
-1
@@ -163,6 +163,20 @@ fun TimelineItemEventRow(
|
|||||||
onMoreReactionsClicked = { onMoreReactionsClick(event) },
|
onMoreReactionsClicked = { onMoreReactionsClick(event) },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
TimelineItemEventRowContent(
|
||||||
|
event = event,
|
||||||
|
isHighlighted = isHighlighted,
|
||||||
|
interactionSource = interactionSource,
|
||||||
|
onClick = onClick,
|
||||||
|
onLongClick = onLongClick,
|
||||||
|
onTimestampClicked = onTimestampClicked,
|
||||||
|
inReplyToClicked = ::inReplyToClicked,
|
||||||
|
onUserDataClicked = ::onUserDataClicked,
|
||||||
|
onReactionClicked = { emoji -> onReactionClick(emoji, event) },
|
||||||
|
onMoreReactionsClicked = { onMoreReactionsClick(event) },
|
||||||
|
)
|
||||||
|
}
|
||||||
if (event.groupPosition.isNew()) {
|
if (event.groupPosition.isNew()) {
|
||||||
Spacer(modifier = Modifier.height(16.dp))
|
Spacer(modifier = Modifier.height(16.dp))
|
||||||
} else {
|
} else {
|
||||||
@@ -170,7 +184,6 @@ fun TimelineItemEventRow(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun TimelineItemEventRowContent(
|
private fun TimelineItemEventRowContent(
|
||||||
|
|||||||
Reference in New Issue
Block a user