aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-01-08 12:31:20 +0100
committerfiaxh <git@lightrise.org>2023-01-08 12:34:25 +0100
commit0c4aea96ffbc05d6efeb9a83424b872ce7f30d88 (patch)
tree65efaa3ded379fa9a81831739e4a96794cf7cd36
parent424a4290622246303a7b73410d7e4a5a6d57dd6b (diff)
downloaddino-0c4aea96ffbc05d6efeb9a83424b872ce7f30d88.tar.gz
dino-0c4aea96ffbc05d6efeb9a83424b872ce7f30d88.zip
Replies: Fix fallback bodies with multi-line quotes
-rw-r--r--libdino/src/service/message_processor.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 62822658..8d544b45 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -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;