|
|
|
@ -753,7 +753,8 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void redactEventsAction() async {
|
|
|
|
|
final reasonInput = await showTextInputDialog(
|
|
|
|
|
final reasonInput = selectedEvents.any((event) => event.status.isSent)
|
|
|
|
|
? await showTextInputDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
title: L10n.of(context)!.redactMessage,
|
|
|
|
|
message: L10n.of(context)!.redactMessageDescription,
|
|
|
|
@ -765,7 +766,8 @@ class ChatController extends State<ChatPageWithRoom> {
|
|
|
|
|
],
|
|
|
|
|
okLabel: L10n.of(context)!.remove,
|
|
|
|
|
cancelLabel: L10n.of(context)!.cancel,
|
|
|
|
|
);
|
|
|
|
|
)
|
|
|
|
|
: <String>[];
|
|
|
|
|
if (reasonInput == null) return;
|
|
|
|
|
final reason = reasonInput.single.isEmpty ? null : reasonInput.single;
|
|
|
|
|
for (final event in selectedEvents) {
|
|
|
|
|