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,10 +232,17 @@ public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider ...@@ -232,10 +232,17 @@ public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider
catch (UserNotFoundException e) { 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
Packet removePacket = createRemoveForward(sender, recipient); String serverDomain = localServer.getServerInfo().getName();
router.route(removePacket); // 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);
}
} }
} }
......
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