|
|
|
|
@ -153,7 +153,12 @@ class _ChatState extends State<_Chat> {
|
|
|
|
|
"body": sendController.text,
|
|
|
|
|
};
|
|
|
|
|
if (replyEvent != null) {
|
|
|
|
|
String replyText = ("<${replyEvent.senderId}> " + replyEvent.body);
|
|
|
|
|
String replyText = "<${replyEvent.senderId}> " +
|
|
|
|
|
replyEvent.getLocalizedBody(
|
|
|
|
|
context,
|
|
|
|
|
withSenderNamePrefix: false,
|
|
|
|
|
hideQuotes: true,
|
|
|
|
|
);
|
|
|
|
|
List<String> replyTextLines = replyText.split("\n");
|
|
|
|
|
for (int i = 0; i < replyTextLines.length; i++) {
|
|
|
|
|
replyTextLines[i] = "> " + replyTextLines[i];
|
|
|
|
|
|