From 0c4aea96ffbc05d6efeb9a83424b872ce7f30d88 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 8 Jan 2023 12:31:20 +0100 Subject: Replies: Fix fallback bodies with multi-line quotes --- libdino/src/service/message_processor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdino') 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; -- cgit v1.2.3-54-g00ecf