From b3c7deed8851cb82e4d29ace48690203bcdbf533 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 10 Feb 2020 18:33:05 +0100 Subject: [PATCH] Fix reply on reply --- lib/views/chat.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index cac0398..9631e7b 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -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 replyTextLines = replyText.split("\n"); for (int i = 0; i < replyTextLines.length; i++) { replyTextLines[i] = "> " + replyTextLines[i];