mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fix plaintext private message handling
This commit is contained in:
parent
46ecdc335c
commit
c0e8f72276
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user