store offline messages with empty body for pubsub

Description

see http://www.igniterealtime.org/community/thread/36322
OfflineMessageStore.java ignores "empty-bodied" messages (line 113, addMessage() method. Pubsub messages are dropped therefore.

Environment

None

Activity

Show:

Tom Evans November 5, 2012 at 9:27 PM

SVN 13344

Rob Fuller March 15, 2010 at 7:37 PM

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;
}
}

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created December 16, 2008 at 3:19 AM
Updated November 5, 2012 at 9:27 PM
Resolved November 5, 2012 at 9:27 PM

Flag notifications