Fix reply on reply
This commit is contained in:
parent
325aed437b
commit
b3c7deed88
|
@ -153,7 +153,12 @@ class _ChatState extends State<_Chat> {
|
||||||
"body": sendController.text,
|
"body": sendController.text,
|
||||||
};
|
};
|
||||||
if (replyEvent != null) {
|
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");
|
List<String> replyTextLines = replyText.split("\n");
|
||||||
for (int i = 0; i < replyTextLines.length; i++) {
|
for (int i = 0; i < replyTextLines.length; i++) {
|
||||||
replyTextLines[i] = "> " + replyTextLines[i];
|
replyTextLines[i] = "> " + replyTextLines[i];
|
||||||
|
|
Loading…
Reference in a new issue