From 11c219fa50eef63a2979adbecb5c47845654087f Mon Sep 17 00:00:00 2001 From: avashilling <165050625+avashilling@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:24:36 -0400 Subject: [PATCH] fix: limit characters and lines so redact message can't be too long Before, if the user typed too many lines it would overflow past the input box and also leave a very long message in chat. Now, it is limited and won't expand in the input box past 4 lines. --- lib/pages/chat/chat.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index 13238a6a8..e0925f9f5 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -843,6 +843,9 @@ class ChatController extends State message: L10n.of(context).redactMessageDescription, isDestructive: true, hintText: L10n.of(context).optionalRedactReason, + maxLength: 255, + maxLines: 3, + minLines: 1, okLabel: L10n.of(context).remove, cancelLabel: L10n.of(context).cancel, )