powered by Jive Software

Messages without body are filtered out


Does anyone know why messages without body are filtered out ? And if is possible to kick that.

In the ChatManager the MessageFilter indicates that there can be no message without a body. However the xmpp rfc allows it (https://xmpp.org/rfcs/rfc3921.html#stanzas).

Any help would be greatly appreciated.

Thank you,


You probably want to listen for messages without a body using a StanzaListener.

Yep it’s what I’ve done, but I want to understand why.

I think it is simply a design decision that the ChatManager considers chat messages to have a body.

It’s not that the XMPP RFC says.

XMPP has more use cases than just chat => Messages are not always chat messages.
If the ChatManager would accept all messages, it would heavily break for example when In-Band-Real Time Text is received.