From a951bf8ba9dd742a9fbb8313418c7fca6c2f8059 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 5 Nov 2004 17:43:46 +0000 Subject: [PATCH] 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 --- source/org/jivesoftware/smack/Roster.java | 4 ++-- source/org/jivesoftware/smack/RosterListener.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index 25c6256e0..aeee8a3f2 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -593,7 +593,7 @@ public class Roster { for (Iterator i = entries.iterator(); i.hasNext();) { RosterEntry entry = (RosterEntry) i.next(); 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(); ) { RosterEntry entry = (RosterEntry)i.next(); if (entry.getUser().toLowerCase().equals(key.toLowerCase())) { - fireRosterPresenceEvent(key); + fireRosterPresenceEvent(from); } } } diff --git a/source/org/jivesoftware/smack/RosterListener.java b/source/org/jivesoftware/smack/RosterListener.java index 0b8b704d8..4d3f17e75 100644 --- a/source/org/jivesoftware/smack/RosterListener.java +++ b/source/org/jivesoftware/smack/RosterListener.java @@ -36,7 +36,8 @@ public interface RosterListener { /** * 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); }