fix: Requirements when to display report event button

This commit is contained in:
Christian Pauly 2021-08-12 21:40:55 +02:00
parent e6358996e6
commit 8cfe2a1899

View File

@ -163,7 +163,7 @@ class ChatView extends StatelessWidget {
tooltip: L10n.of(context).copy, tooltip: L10n.of(context).copy,
onPressed: controller.copyEventsAction, onPressed: controller.copyEventsAction,
), ),
if (controller.canRedactSelectedEvents) if (controller.selectedEvents.length == 1)
IconButton( IconButton(
icon: Icon(Icons.report_outlined), icon: Icon(Icons.report_outlined),
tooltip: L10n.of(context).reportMessage, tooltip: L10n.of(context).reportMessage,