From 3aec7b74e995e5996199911c5d5b504d108c0186 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 23 Nov 2023 09:53:37 +0100 Subject: [PATCH] Simplify: TimelineItemEventRowWithReplyPreview. Short reply text and remove reactions. --- .../components/TimelineItemEventRowWithReplyPreview.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowWithReplyPreview.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowWithReplyPreview.kt index 41bbbd46a9..9d9ff5cdd0 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowWithReplyPreview.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/TimelineItemEventRowWithReplyPreview.kt @@ -19,6 +19,7 @@ package io.element.android.features.messages.impl.timeline.components import androidx.compose.foundation.layout.Column import androidx.compose.runtime.Composable import io.element.android.features.messages.impl.timeline.aTimelineItemEvent +import io.element.android.features.messages.impl.timeline.aTimelineItemReactions import io.element.android.features.messages.impl.timeline.model.InReplyToDetails import io.element.android.features.messages.impl.timeline.model.TimelineItemGroupPosition import io.element.android.features.messages.impl.timeline.model.event.aTimelineItemImageContent @@ -45,9 +46,9 @@ internal fun TimelineItemEventRowWithReplyPreview() = ElementPreview { TimelineItemEventRow( event = aTimelineItemEvent( isMine = it, + timelineItemReactions = aTimelineItemReactions(count = 0), content = aTimelineItemTextContent().copy( - body = "A long text which will be displayed on several lines and" + - " hopefully can be manually adjusted to test different behaviors." + body = "A reply." ), inReplyTo = aInReplyToDetails(replyContent), groupPosition = TimelineItemGroupPosition.First, @@ -71,6 +72,7 @@ internal fun TimelineItemEventRowWithReplyPreview() = ElementPreview { TimelineItemEventRow( event = aTimelineItemEvent( isMine = it, + timelineItemReactions = aTimelineItemReactions(count = 0), content = aTimelineItemImageContent().copy( aspectRatio = 5f ),