From 368674eca46a35d9a82093fbc78b90125967e9d3 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Sat, 23 Aug 2003 22:09:13 +0000 Subject: [PATCH] Small tweak. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2057 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/Roster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index f57ad50c4..12f04cef7 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -400,7 +400,7 @@ public class Roster { public void processPacket(Packet packet) { Presence presence = (Presence)packet; String from = presence.getFrom(); - String key = StringUtils.parseName(from) + "@" + StringUtils.parseServer(from); + String key = StringUtils.parseBareAddress(from); // If an "available" packet, add it to the presence map. This means that for // a particular user, we'll only ever have a single presence packet saved. // Because this ignores resources, this is not an ideal solution, so will