1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Message received without body error log

This is not an error, the message has no body because of
XEP-0085: Chat State Notifications.

Changed log level from error to info.
This commit is contained in:
DebXWoody 2021-06-03 19:55:13 +02:00
parent e1fbe3be90
commit 183eeca632
No known key found for this signature in database
GPG Key ID: CBD1B596579B7FFF

View File

@ -1086,7 +1086,7 @@ _handle_groupchat(xmpp_stanza_t* const stanza)
#endif #endif
if (!message->plain && !message->body) { if (!message->plain && !message->body) {
log_error("Message received without body for room: %s", from_jid->str); log_info("Message received without body for room: %s", from_jid->str);
goto out; goto out;
} else if (!message->plain) { } else if (!message->plain) {
message->plain = strdup(message->body); message->plain = strdup(message->body);
@ -1244,7 +1244,7 @@ _handle_muc_private_message(xmpp_stanza_t* const stanza)
message->body = xmpp_message_get_body(stanza); message->body = xmpp_message_get_body(stanza);
if (!message->plain && !message->body) { if (!message->plain && !message->body) {
log_error("Message received without body from: %s", message->from_jid->str); log_info("Message received without body from: %s", message->from_jid->str);
goto out; goto out;
} else if (!message->plain) { } else if (!message->plain) {
message->plain = strdup(message->body); message->plain = strdup(message->body);