1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +01:00

Small tweak.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2057 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-08-23 22:09:13 +00:00 committed by mtucker
parent 31854b21a3
commit 368674eca4

View file

@ -400,7 +400,7 @@ public class Roster {
public void processPacket(Packet packet) { public void processPacket(Packet packet) {
Presence presence = (Presence)packet; Presence presence = (Presence)packet;
String from = presence.getFrom(); 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 // 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. // 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 // Because this ignores resources, this is not an ideal solution, so will