Replies: Fix fallback bodies with multi-line quotes

This commit is contained in:
fiaxh 2023-01-08 12:31:20 +01:00
parent 424a429062
commit 0c4aea96ff
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
Xep.Replies.set_reply_to(new_message, new Xep.Replies.ReplyTo(quoted_message.from, quoted_message.stanza_id));
string body_with_fallback = "> " + Dino.message_body_without_reply_fallback(quoted_message);
body_with_fallback.replace("\n", "\n> ");
body_with_fallback = body_with_fallback.replace("\n", "\n> ");
body_with_fallback += "\n";
long fallback_length = body_with_fallback.length;
body_with_fallback += message.body;