aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2020-06-27 11:23:48 +0200
committerMarvin W <git@larma.de>2020-06-28 11:53:43 +0200
commit48964bc5cca6e56cd7fc745b1a4a9ae5d34f0772 (patch)
tree8800df708651f4c7b1628f147b5441560f67218e /libdino/src
parent8f8018ec81d4ea6e6a5e2f3d811daa57a31f6122 (diff)
downloaddino-48964bc5cca6e56cd7fc745b1a4a9ae5d34f0772.tar.gz
dino-48964bc5cca6e56cd7fc745b1a4a9ae5d34f0772.zip
Don't strip() at XML layer
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/message_processor.vala4
1 files changed, 3 insertions, 1 deletions
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;