Skip to content

Commit

Permalink
compose [nfc]: Add a TODO(zulip#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Jan 17, 2025
1 parent 5e8d0a8 commit 53c5105
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/widgets/compose_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class ComposeContentController extends ComposeController<ContentValidationError>
// normalized.length is the number of UTF-16 code units, while the server
// API expresses the max in Unicode code points. So this comparison will
// be conservative and may cut the user off shorter than necessary.
// TODO(#1238) stop cutting off shorter than necessary
if (textNormalized.length > kMaxMessageLengthCodePoints)
ContentValidationError.tooLong,

Expand Down

0 comments on commit 53c5105

Please sign in to comment.