mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-16 10:01:08 +01:00
Add XMPPConnection.sendStanza(Stanza)
and deprecate sendPacket().
This commit is contained in:
parent
183af99ffb
commit
ed4fa3390f
58 changed files with 183 additions and 167 deletions
|
|
@ -56,7 +56,7 @@ import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
|
|||
* });
|
||||
* Message message = …
|
||||
* DeliveryReceiptRequest.addTo(message);
|
||||
* connection.sendPacket(message);
|
||||
* connection.sendStanza(message);
|
||||
* </pre>
|
||||
*
|
||||
* DeliveryReceiptManager can be configured to automatically add delivery receipt requests to every
|
||||
|
|
@ -158,7 +158,7 @@ public class DeliveryReceiptManager extends Manager {
|
|||
|
||||
final Message messageWithReceiptRequest = (Message) packet;
|
||||
Message ack = receiptMessageFor(messageWithReceiptRequest);
|
||||
connection.sendPacket(ack);
|
||||
connection.sendStanza(ack);
|
||||
}
|
||||
}, MESSAGES_WITH_DEVLIERY_RECEIPT_REQUEST);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue