Merge pull request #2077 from avashilling/Add-redaction-explanation-size-limit

fix: limit characters and lines so redact message can't be too long
pull/2086/head
Krille-chan 4 months ago committed by GitHub
commit 7faf4a6c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -843,6 +843,9 @@ class ChatController extends State<ChatPageWithRoom>
message: L10n.of(context).redactMessageDescription, message: L10n.of(context).redactMessageDescription,
isDestructive: true, isDestructive: true,
hintText: L10n.of(context).optionalRedactReason, hintText: L10n.of(context).optionalRedactReason,
maxLength: 255,
maxLines: 3,
minLines: 1,
okLabel: L10n.of(context).remove, okLabel: L10n.of(context).remove,
cancelLabel: L10n.of(context).cancel, cancelLabel: L10n.of(context).cancel,
) )

Loading…
Cancel
Save