From 1e803ab29d4b989a63c8ca0bd0b3900b2aaa1496 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 5 Oct 2014 12:52:19 +0200 Subject: [PATCH] Use from(Packet) instead of getFrom(Packet) in DeliveryReceiptManager --- .../smackx/receipts/DeliveryReceiptManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/receipts/DeliveryReceiptManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/receipts/DeliveryReceiptManager.java index 5bb905813..d12e38e48 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/receipts/DeliveryReceiptManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/receipts/DeliveryReceiptManager.java @@ -101,7 +101,7 @@ public class DeliveryReceiptManager extends Manager implements PacketListener { // handle incoming receipts and receipt requests @Override public void processPacket(Packet packet) throws NotConnectedException { - DeliveryReceipt dr = DeliveryReceipt.getFrom(packet); + DeliveryReceipt dr = DeliveryReceipt.from(packet); if (dr != null) { // notify listeners of incoming receipt for (ReceiptReceivedListener l : receiptReceivedListeners) { @@ -111,7 +111,7 @@ public class DeliveryReceiptManager extends Manager implements PacketListener { // if enabled, automatically send a receipt if (auto_receipts_enabled) { - DeliveryReceiptRequest drr = DeliveryReceiptRequest.getFrom(packet); + DeliveryReceiptRequest drr = DeliveryReceiptRequest.from(packet); if (drr != null) { XMPPConnection connection = connection(); 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 */ public static boolean hasDeliveryReceiptRequest(Packet p) { - return (DeliveryReceiptRequest.getFrom(p) != null); + return (DeliveryReceiptRequest.from(p) != null); } /**