Commit 06583b52 authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-191: Allow offline storage for empty pubsub messages

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13344 b35dd754-fafc-0310-a699-88a17e54d16e
parent 48d78c27
......@@ -132,9 +132,13 @@ public class OfflineMessageStore extends BasicModule implements UserEventListene
if (message == null) {
return;
}
// ignore empty bodied message (typically chat-state notifications).
if (message.getBody() == null || message.getBody().length() == 0) {
// ignore empty bodied message (typically chat-state notifications).
return;
// allow empty pubsub messages (OF-191)
if (message.getChildElement("event", "http://jabber.org/protocol/pubsub#event") == null)
{
return;
}
}
JID recipient = message.getTo();
String username = recipient.getNode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment