1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

Resource is included in roster events (SMACK-28).

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2411 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-11-05 17:43:46 +00:00 committed by matt
parent 55433d1cf3
commit a951bf8ba9
2 changed files with 4 additions and 3 deletions

View file

@ -593,7 +593,7 @@ public class Roster {
for (Iterator i = entries.iterator(); i.hasNext();) { for (Iterator i = entries.iterator(); i.hasNext();) {
RosterEntry entry = (RosterEntry) i.next(); RosterEntry entry = (RosterEntry) i.next();
if (entry.getUser().toLowerCase().equals(key.toLowerCase())) { if (entry.getUser().toLowerCase().equals(key.toLowerCase())) {
fireRosterPresenceEvent(key); fireRosterPresenceEvent(from);
} }
} }
} }
@ -614,7 +614,7 @@ public class Roster {
for (Iterator i=entries.iterator(); i.hasNext(); ) { for (Iterator i=entries.iterator(); i.hasNext(); ) {
RosterEntry entry = (RosterEntry)i.next(); RosterEntry entry = (RosterEntry)i.next();
if (entry.getUser().toLowerCase().equals(key.toLowerCase())) { if (entry.getUser().toLowerCase().equals(key.toLowerCase())) {
fireRosterPresenceEvent(key); fireRosterPresenceEvent(from);
} }
} }
} }

View file

@ -36,7 +36,8 @@ public interface RosterListener {
/** /**
* Called when the presence of a roster entry is changed. * Called when the presence of a roster entry is changed.
* *
* @param XMPPAddress the XMPP address of the user who's presence has changed. * @param XMPPAddress the XMPP address of the user who's presence has changed,
* including the resource.
*/ */
public void presenceChanged(String XMPPAddress); public void presenceChanged(String XMPPAddress);
} }