mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +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:
parent
1d37c49253
commit
1863692765
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue