Commit c3a70667 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Messages sent to remote users are not being stored. JM-337


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1648 b35dd754-fafc-0310-a699-88a17e54d16e
parent aea988c3
...@@ -88,6 +88,11 @@ public class OfflineMessageStore extends BasicModule { ...@@ -88,6 +88,11 @@ public class OfflineMessageStore extends BasicModule {
if (username == null) { if (username == null) {
return; return;
} }
else if (!XMPPServer.getInstance().getServerInfo().getName().equals(message.getTo()
.getDomain())) {
// Do not store messages sent to users of remote servers
return;
}
long messageID = SequenceManager.nextID(JiveConstants.OFFLINE); long messageID = SequenceManager.nextID(JiveConstants.OFFLINE);
......
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