Commit 084066ab authored by Leon Roy's avatar Leon Roy Committed by leonroy

OF-677 - Monitoring Plugin - "Null" reappearing in Archive for Message Body

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13672 b35dd754-fafc-0310-a699-88a17e54d16e
parent f6f097aa
......@@ -44,10 +44,16 @@
Monitoring Plugin Changelog
</h1>
<p><b>1.3.3</b> -- June 5, 2013</p>
<ul>
<li>OF-677 - Monitoring Plugin - "Null" reappearing in Archive for Message Body.</li>
</ul>
<p><b>1.3.2-rc1</b> -- May 13, 2013</p>
<ul>
<li>OF-651 - Monitoring plugin should have an option to purge and restrict.</li>
<li>OF-651 - Monitoring plugin should have an option to purge and restrict.</li>
</ul>
......
......@@ -5,8 +5,8 @@
<name>Monitoring Service</name>
<description>Monitors conversations and statistics of the server.</description>
<author>Jive Software</author>
<version>1.3.2-beta1</version>
<date>05/13/2013</date>
<version>1.3.3</version>
<date>06/05/2013</date>
<minServerVersion>3.6.0</minServerVersion>
<databaseKey>monitoring</databaseKey>
<databaseVersion>1</databaseVersion>
......
......@@ -704,7 +704,10 @@ public class ConversationManager implements Startable, ComponentEventListener {
conversationQueue.add(conversation);
}
if (messageArchivingEnabled) {
messageQueue.add(new ArchivedMessage(conversation.getConversationID(), sender, receiver, date, body, false));
if (body != null) {
/* OF-677 - Workaround to prevent null messages being archived */
messageQueue.add(new ArchivedMessage(conversation.getConversationID(), sender, receiver, date, body, false));
}
}
// Notify listeners of the conversation update.
for (ConversationListener listener : conversationListeners) {
......@@ -763,7 +766,10 @@ public class ConversationManager implements Startable, ComponentEventListener {
}
if (roomArchivingEnabled && (roomsArchived.isEmpty() || roomsArchived.contains(roomJID.getNode()))) {
JID jid = new JID(roomJID + "/" + nickname);
messageQueue.add(new ArchivedMessage(conversation.getConversationID(), sender, jid, date, body, false));
if (body != null) {
/* OF-677 - Workaround to prevent null messages being archived */
messageQueue.add(new ArchivedMessage(conversation.getConversationID(), sender, jid, date, body, false));
}
}
// Notify listeners of the conversation update.
for (ConversationListener listener : conversationListeners) {
......
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