chore: Follow up message context action

This commit is contained in:
krille-chan 2023-12-27 19:37:25 +01:00
parent 45c6569872
commit 43f304b1a8
No known key found for this signature in database

View file

@ -486,17 +486,17 @@ class Message extends StatelessWidget {
tooltip: L10n.of(context)!.select,
onPressed: () => onSelect(event),
),
if (hovered) ...[
if (event.room.canSendDefaultMessages)
IconButton(
icon: const Icon(
Icons.reply_outlined,
size: 16,
),
tooltip: L10n.of(context)!.reply,
onPressed: () => onSwipe(),
if (hovered &&
event.room.canSendDefaultMessages &&
event.status.isSent)
IconButton(
icon: const Icon(
Icons.reply_outlined,
size: 16,
),
],
tooltip: L10n.of(context)!.reply,
onPressed: () => onSwipe(),
),
],
),
),