Fix showing link previews in reply preview
This commit is contained in:
parent
d746f40778
commit
f085d04f67
1 changed files with 12 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue