Commit 5c2f0377 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed exception when removing a roster item whose JID belongs to a foreign server. JM-188


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1052 b35dd754-fafc-0310-a699-88a17e54d16e
parent 03442081
......@@ -232,12 +232,19 @@ public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider
catch (UserNotFoundException e) {
}
}
else { // Recipient is remote so we just forward the packet to them
else {
// Recipient is remote so we just forward the packet to them
String serverDomain = localServer.getServerInfo().getName();
// Check if the recipient may be hosted by this server
if (!recipient.getDomain().contains(serverDomain)) {
// TODO Implete when s2s is implemented
}
else {
Packet removePacket = createRemoveForward(sender, recipient);
router.route(removePacket);
}
}
}
/**
* Creates a forwarded removal packet.
......
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