Commit d028b445 authored by Christian Schudt's avatar Christian Schudt

OF-810 non-chat messages addressed to full JID should get ignored or bounced.

parent 237cf9c4
...@@ -253,6 +253,9 @@ public class MessageRouter extends BasicModule { ...@@ -253,6 +253,9 @@ public class MessageRouter extends BasicModule {
Message msg = (Message)packet; Message msg = (Message)packet;
if (msg.getType().equals(Message.Type.chat)) { if (msg.getType().equals(Message.Type.chat)) {
routingTable.routePacket(recipient.asBareJID(), packet, false); routingTable.routePacket(recipient.asBareJID(), packet, false);
} else {
// Delegate to offline message strategy, which will either bounce or ignore the message depending on user settings.
messageStrategy.storeOffline((Message) packet);
} }
} else { } else {
// Just store the message offline // Just store the message 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