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:
parent
55433d1cf3
commit
a951bf8ba9
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue