forked from Nexus/nexus
show messages whilst sending
This commit is contained in:
parent
d9f62a9de9
commit
b836c3b06e
5 changed files with 51 additions and 35 deletions
|
|
@ -446,19 +446,22 @@ class EventRenderer extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
|
||||
if (event.content is! MessageContent)
|
||||
Padding(
|
||||
padding: EdgeInsetsGeometry.only(left: 12),
|
||||
child: ReactionRow(event),
|
||||
),
|
||||
...[
|
||||
if (event.content is! MessageContent) ReactionRow(event),
|
||||
|
||||
if (event.sendError != null && event.sendError != "not sent")
|
||||
Text(
|
||||
event.sendError!,
|
||||
style: theme.textTheme.labelSmall?.copyWith(
|
||||
color: theme.colorScheme.error,
|
||||
if (event.sendError != null && event.sendError != "not sent")
|
||||
Text(
|
||||
event.sendError!,
|
||||
style: theme.textTheme.labelSmall?.copyWith(
|
||||
color: theme.colorScheme.error,
|
||||
),
|
||||
),
|
||||
].map(
|
||||
(child) => Padding(
|
||||
padding: EdgeInsetsGeometry.only(left: 4),
|
||||
child: child,
|
||||
),
|
||||
),
|
||||
] else if (textOnly)
|
||||
Text("Unknown event type", style: errorStyle),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue