mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
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 New Issue
Block a user