fix: quoted text message not shown properly

This commit is contained in:
otsmr 2026-02-21 01:18:35 +01:00
parent 2b3ee4fbb3
commit 30db0a1ff5

View file

@ -241,7 +241,7 @@ InputDecoration inputTextMessageDeco(BuildContext context) {
String truncateString(String input, {int maxLength = 20}) { String truncateString(String input, {int maxLength = 20}) {
if (input.length > maxLength) { if (input.length > maxLength) {
return '${input.substring(0, maxLength)}...'; return '${input.characters.take(maxLength)}...';
} }
return input; return input;
} }