Browse Source

Merge pull request #597 from vector-im/feature/fga/fix_reply_timeline_ui

Feature/fga/fix reply timeline UI
pull/560/head
ganfra 1 year ago committed by GitHub
parent
commit
18cdfdf439
  1. 4
      features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt

4
features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRow.kt

@ -248,7 +248,7 @@ private fun MessageEventBubbleContent( @@ -248,7 +248,7 @@ private fun MessageEventBubbleContent(
) {
EqualWidthColumn(modifier = modifier, spacing = 8.dp) {
if (inReplyToDetails != null) {
val senderName = event.senderDisplayName ?: event.senderId.value
val senderName = inReplyToDetails.senderDisplayName ?: inReplyToDetails.senderId.value
val attachmentThumbnailInfo = attachmentThumbnailInfoForInReplyTo(inReplyToDetails)
ReplyToContent(
senderName = senderName,
@ -256,6 +256,7 @@ private fun MessageEventBubbleContent( @@ -256,6 +256,7 @@ private fun MessageEventBubbleContent(
attachmentThumbnailInfo = attachmentThumbnailInfo,
modifier = Modifier
.padding(top = 8.dp, start = 8.dp, end = 8.dp)
.clip(RoundedCornerShape(6.dp))
.clickable(enabled = true, onClick = inReplyToClick),
)
}
@ -300,7 +301,6 @@ private fun ReplyToContent( @@ -300,7 +301,6 @@ private fun ReplyToContent(
}
Row(
modifier
.clip(RoundedCornerShape(6.dp))
.background(MaterialTheme.colorScheme.surface)
.padding(paddings)
) {

Loading…
Cancel
Save