mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 21:46:22 +00: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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user