Commit 9b2379ef authored by guus's avatar guus

[JM-1435] Prevent Empty-bodied messages from being stored (thanks to Diego...

[JM-1435] Prevent Empty-bodied messages from being stored (thanks to Diego Mendez). Reviewed by Daniel

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10695 b35dd754-fafc-0310-a699-88a17e54d16e
parent e4ba8864
......@@ -107,6 +107,10 @@ public class OfflineMessageStore extends BasicModule implements UserEventListene
if (message == null) {
return;
}
if (message.getBody() == null || message.getBody().length() == 0) {
// ignore empty bodied message (typically chat-state notifications).
return;
}
JID recipient = message.getTo();
String username = recipient.getNode();
// If the username is null (such as when an anonymous user), don't store.
......
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