Skip to content

Commit

Permalink
TW-777: hide delete message functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE authored and hoangdat committed Oct 12, 2023
1 parent 91ce3b9 commit a1243c3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/pages/chat/chat_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ class ChatView extends StatelessWidget with MessageContentMixin {
onTap: () => controller
.actionWithClearSelections(controller.copySingleEventAction),
),
if (controller.canRedactSelectedEvents)
TwakeIconButton(
icon: Icons.delete_outlined,
tooltip: L10n.of(context)!.redactMessage,
onTap: () => controller
.actionWithClearSelections(controller.redactEventsAction),
),
// #777 Hide Delete Message functionality
// if (controller.canRedactSelectedEvents)
// TwakeIconButton(
// icon: Icons.delete_outlined,
// tooltip: L10n.of(context)!.redactMessage,
// onTap: () => controller
// .actionWithClearSelections(controller.redactEventsAction),
// ),
TwakeIconButton(
icon: Icons.push_pin_outlined,
tooltip: L10n.of(context)!.pinMessage,
Expand Down

0 comments on commit a1243c3

Please sign in to comment.