From 48964bc5cca6e56cd7fc745b1a4a9ae5d34f0772 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 27 Jun 2020 11:23:48 +0200 Subject: Don't strip() at XML layer --- libdino/src/service/message_processor.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libdino/src/service') diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala index 6a66f343..74192e16 100644 --- a/libdino/src/service/message_processor.vala +++ b/libdino/src/service/message_processor.vala @@ -333,7 +333,9 @@ public class MessageProcessor : StreamInteractionModule, Object { } public async Entities.Message parse_message_stanza(Account account, Xmpp.MessageStanza message) { - Entities.Message new_message = new Entities.Message(message.body); + string? body = message.body; + if (body != null) body = body.strip(); + Entities.Message new_message = new Entities.Message(body); new_message.account = account; new_message.stanza_id = Xep.UniqueStableStanzaIDs.get_origin_id(message) ?? message.id; -- cgit v1.2.3-70-g09d2