see http://www.igniterealtime.org/community/thread/36322
OfflineMessageStore.java ignores "empty-bodied" messages (line 113, addMessage() method. Pubsub messages are dropped therefore.
This fix seems to work:
if (message.getBody() == null || message.getBody().length() == 0) {
// ignore empty bodied message (typically chat-state notifications).
// but not pubsub messages
if(message.getChildElement("event", "http://jabber.org/protocol/pubsub#event") == null){
return;
}
}
SVN 13344