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

Do not log messages with no body and no subject. JM-862

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5616 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8ec8450a
......@@ -909,7 +909,10 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
}
public void logConversation(MUCRoom room, Message message, JID sender) {
logQueue.add(new ConversationLogEntry(new Date(), room, message, sender));
// Only log messages that have a subject or body. Otherwise ignore it.
if (message.getSubject() != null || message.getBody() != null) {
logQueue.add(new ConversationLogEntry(new Date(), room, message, sender));
}
}
public void messageBroadcastedTo(int numOccupants) {
......
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