fix: Remove failed to sent events

This commit is contained in:
krille-chan 2023-11-05 10:09:02 +01:00
commit 9f0bcd5523
No known key found for this signature in database
3 changed files with 61 additions and 23 deletions

View file

@ -91,20 +91,21 @@ class ChatView extends StatelessWidget {
],
),
),
PopupMenuItem(
value: _EventContextAction.report,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(
Icons.shield_outlined,
color: Colors.red,
),
const SizedBox(width: 12),
Text(L10n.of(context)!.reportMessage),
],
if (controller.selectedEvents.single.status.isSent)
PopupMenuItem(
value: _EventContextAction.report,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(
Icons.shield_outlined,
color: Colors.red,
),
const SizedBox(width: 12),
Text(L10n.of(context)!.reportMessage),
],
),
),
),
],
),
];