Fix reply on reply

This commit is contained in:
Christian Pauly 2020-02-10 18:33:05 +01:00
parent 325aed437b
commit b3c7deed88

View File

@ -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];