diff --git a/lib/ui/tiles/conversation_message_tile.dart b/lib/ui/tiles/conversation_message_tile.dart index cdae381..d1da64d 100644 --- a/lib/ui/tiles/conversation_message_tile.dart +++ b/lib/ui/tiles/conversation_message_tile.dart @@ -70,7 +70,7 @@ class ConversationMessageTile extends StatelessWidget { user: userInfo, width: 35.0, ), - itemBuilder: (c) => [ + itemBuilder: (c) => >[ PopupMenuItem( enabled: (message.message?.content ?? "") != "", value: _MenuChoices.COPY_MESSAGE, @@ -101,7 +101,7 @@ class ConversationMessageTile extends StatelessWidget { value: _MenuChoices.DELETE, child: Text(tr("Delete")), ), - ], + ]..removeWhere((element) => !element.enabled), onSelected: _menuOptionSelected, ), );