forked from Nexus/nexus
Fix some textOnly handling
This commit is contained in:
parent
bb037c8162
commit
a150ef2ecf
2 changed files with 35 additions and 26 deletions
|
|
@ -163,7 +163,7 @@ class EventRenderer extends ConsumerWidget {
|
|||
if (child != null) ...[
|
||||
if (textOnly)
|
||||
child
|
||||
else
|
||||
else ...[
|
||||
GestureDetector(
|
||||
onSecondaryTapUp: contextMenuCallback,
|
||||
onLongPressStart: contextMenuCallback,
|
||||
|
|
@ -173,22 +173,23 @@ class EventRenderer extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
|
||||
...[
|
||||
if (event.content is! MessageContent) 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,
|
||||
),
|
||||
].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