1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Small fixes.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1891 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-04-14 04:18:15 +00:00 committed by mtucker
parent 1d37c49253
commit 1863692765

View file

@ -90,8 +90,7 @@ public class Roster {
connection.addPacketListener(new RosterPacketListener(), rosterFilter);
// Listen for any presence packets.
String JID = connection.getUsername() + "@" + connection.getHost();
PacketFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class),
new ToContainsFilter(JID));
PacketFilter presenceFilter = new PacketTypeFilter(Presence.class);
connection.addPacketListener(new PresencePacketListener(), presenceFilter);
}