diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index 35578a6fe..26a8d7e30 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -474,6 +474,9 @@ class InputBar extends StatelessWidget { keyboardType: keyboardType!, textInputAction: textInputAction, autofocus: autofocus!, + inputFormatters: [ + LengthLimitingTextInputFormatter((maxPDUSize / 3).floor()), + ], onSubmitted: (text) { // fix for library for now // it sets the types for the callback incorrectly