mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-12 08:01:08 +01:00
Rename PacketListener to StanzaListener
and add the PacketListener as deprecated interface.
This commit is contained in:
parent
d4a6d8e653
commit
75ec271c6c
40 changed files with 305 additions and 279 deletions
|
|
@ -28,7 +28,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
|||
import org.jivesoftware.smack.Manager;
|
||||
import org.jivesoftware.smack.MessageListener;
|
||||
import org.jivesoftware.smack.PacketCollector;
|
||||
import org.jivesoftware.smack.PacketListener;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.filter.AndFilter;
|
||||
|
|
@ -142,7 +142,7 @@ public class ChatManager extends Manager{
|
|||
|
||||
// Add a listener for all message packets so that we can deliver
|
||||
// messages to the best Chat instance available.
|
||||
connection.addSyncPacketListener(new PacketListener() {
|
||||
connection.addSyncStanzaListener(new StanzaListener() {
|
||||
public void processPacket(Stanza packet) {
|
||||
Message message = (Message) packet;
|
||||
Chat chat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue