Remove flutter chat #26
1 changed files with 12 additions and 11 deletions
Fix showing link previews in reply preview
commit
f085d04f67
|
|
@ -266,7 +266,7 @@ class EventRenderer extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
if (!textOnly)
|
if (!textOnly) ...[
|
||||||
if (event.content
|
if (event.content
|
||||||
case ImageMessageContent(
|
case ImageMessageContent(
|
||||||
:final url,
|
:final url,
|
||||||
|
|
@ -371,7 +371,7 @@ class EventRenderer extends ConsumerWidget {
|
||||||
style: errorStyle,
|
style: errorStyle,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
if (event.lastEditRowId != 0 && !textOnly)
|
if (event.lastEditRowId != 0)
|
||||||
Text(
|
Text(
|
||||||
"(edited)",
|
"(edited)",
|
||||||
style: theme.textTheme.labelSmall,
|
style: theme.textTheme.labelSmall,
|
||||||
|
|
@ -382,6 +382,7 @@ class EventRenderer extends ConsumerWidget {
|
||||||
case final UrlElement link?)
|
case final UrlElement link?)
|
||||||
LinkPreview(link.url),
|
LinkPreview(link.url),
|
||||||
],
|
],
|
||||||
|
],
|
||||||
),
|
),
|
||||||
MessageContent(:final body) => Row(
|
MessageContent(:final body) => Row(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue