diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-04 14:33:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 14:33:43 +0200 |
commit | 593aac8a8469f8cc5b7b95d5ad68a38023691622 (patch) | |
tree | 8d77c2661ed03d580bde69ed357966948c1cadf8 | |
parent | 46ecdc335c61c5adf98894c927bd490ae862b306 (diff) | |
parent | c0e8f72276c70e500aff07b3d73bd156ef4000e6 (diff) | |
download | profani-tty-593aac8a8469f8cc5b7b95d5ad68a38023691622.tar.gz |
Merge pull request #1147 from paulfariello/hotfix/fix-private-message-handling
Fix plaintext private message handling Regards #1144
-rw-r--r-- | src/xmpp/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c index f22b751e..fd2b8e51 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -922,6 +922,9 @@ _private_chat_handler(xmpp_stanza_t *const stanza) } #endif + message->timestamp = stanza_get_delay(stanza); + message->body = xmpp_message_get_body(stanza); + if (!message->plain && !message->body) { log_error("Message received without body from: %s", message->jid->str); goto out; @@ -929,9 +932,6 @@ _private_chat_handler(xmpp_stanza_t *const stanza) message->plain = strdup(message->body); } - message->timestamp = stanza_get_delay(stanza); - message->body = xmpp_message_get_body(stanza); - if (message->timestamp) { sv_ev_delayed_private_message(message); } else { |