mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 09:42: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:
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);
|
connection.addPacketListener(new RosterPacketListener(), rosterFilter);
|
||||||
// Listen for any presence packets.
|
// Listen for any presence packets.
|
||||||
String JID = connection.getUsername() + "@" + connection.getHost();
|
String JID = connection.getUsername() + "@" + connection.getHost();
|
||||||
PacketFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class),
|
PacketFilter presenceFilter = new PacketTypeFilter(Presence.class);
|
||||||
new ToContainsFilter(JID));
|
|
||||||
connection.addPacketListener(new PresencePacketListener(), presenceFilter);
|
connection.addPacketListener(new PresencePacketListener(), presenceFilter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue