We're updating the issue view to help you get more done. 

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

Acceptance Test - Entry

create a pubsub node, subscribe two users.
publish something while one is offline and the other is online
login the offline user, he should get the published content.
See also http://www.igniterealtime.org/community/thread/36322

Activity

Show:
Rob Fuller
March 15, 2010, 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;
}
}

Tom Evans
November 5, 2012, 9:27 PM

SVN 13344

Assignee

Tom Evans

Reporter

LG

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure