Fix showing link previews in reply preview

This commit is contained in:
Henry Hiles 2026-05-20 10:16:52 -04:00
commit f085d04f67
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -266,7 +266,7 @@ class EventRenderer extends ConsumerWidget {
),
),
if (!textOnly)
if (!textOnly) ...[
if (event.content
case ImageMessageContent(
:final url,
@ -371,7 +371,7 @@ class EventRenderer extends ConsumerWidget {
style: errorStyle,
),
},
if (event.lastEditRowId != 0 && !textOnly)
if (event.lastEditRowId != 0)
Text(
"(edited)",
style: theme.textTheme.labelSmall,
@ -382,6 +382,7 @@ class EventRenderer extends ConsumerWidget {
case final UrlElement link?)
LinkPreview(link.url),
],
],
),
MessageContent(:final body) => Row(
spacing: 8,