mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Use from(Packet) instead of getFrom(Packet) in DeliveryReceiptManager
This commit is contained in:
parent
5f06234149
commit
1e803ab29d
1 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ public class DeliveryReceiptManager extends Manager implements PacketListener {
|
||||||
// handle incoming receipts and receipt requests
|
// handle incoming receipts and receipt requests
|
||||||
@Override
|
@Override
|
||||||
public void processPacket(Packet packet) throws NotConnectedException {
|
public void processPacket(Packet packet) throws NotConnectedException {
|
||||||
DeliveryReceipt dr = DeliveryReceipt.getFrom(packet);
|
DeliveryReceipt dr = DeliveryReceipt.from(packet);
|
||||||
if (dr != null) {
|
if (dr != null) {
|
||||||
// notify listeners of incoming receipt
|
// notify listeners of incoming receipt
|
||||||
for (ReceiptReceivedListener l : receiptReceivedListeners) {
|
for (ReceiptReceivedListener l : receiptReceivedListeners) {
|
||||||
|
@ -111,7 +111,7 @@ public class DeliveryReceiptManager extends Manager implements PacketListener {
|
||||||
|
|
||||||
// if enabled, automatically send a receipt
|
// if enabled, automatically send a receipt
|
||||||
if (auto_receipts_enabled) {
|
if (auto_receipts_enabled) {
|
||||||
DeliveryReceiptRequest drr = DeliveryReceiptRequest.getFrom(packet);
|
DeliveryReceiptRequest drr = DeliveryReceiptRequest.from(packet);
|
||||||
if (drr != null) {
|
if (drr != null) {
|
||||||
XMPPConnection connection = connection();
|
XMPPConnection connection = connection();
|
||||||
Message ack = new Message(packet.getFrom(), Message.Type.normal);
|
Message ack = new Message(packet.getFrom(), Message.Type.normal);
|
||||||
|
@ -179,7 +179,7 @@ public class DeliveryReceiptManager extends Manager implements PacketListener {
|
||||||
* @return true if a delivery receipt was requested
|
* @return true if a delivery receipt was requested
|
||||||
*/
|
*/
|
||||||
public static boolean hasDeliveryReceiptRequest(Packet p) {
|
public static boolean hasDeliveryReceiptRequest(Packet p) {
|
||||||
return (DeliveryReceiptRequest.getFrom(p) != null);
|
return (DeliveryReceiptRequest.from(p) != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue