Commit efd24708 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Ignore messages with no body and no subject.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6784 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6faea9ba
......@@ -12,9 +12,9 @@
package org.jivesoftware.wildfire.muc;
import org.dom4j.Element;
import org.jivesoftware.wildfire.user.UserNotFoundException;
import org.jivesoftware.util.FastDateFormat;
import org.jivesoftware.util.JiveConstants;
import org.jivesoftware.wildfire.user.UserNotFoundException;
import org.xmpp.packet.JID;
import org.xmpp.packet.Message;
......@@ -61,6 +61,12 @@ public final class MUCRoomHistory {
}
}
// Ignore messages with no subject AND no body
if ((packet.getSubject() == null || "".equals(packet.getSubject().trim())) &&
(packet.getBody() == null || "".equals(packet.getBody().trim()))) {
return;
}
Message packetToAdd = packet.createCopy();
// Check if the room has changed its configuration
......
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