1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-15 03:59:38 +02:00

DeliveryReceipt helper methods take Message as argument

Since it makes only sense for messages to have delivery receipts.
This commit is contained in:
Florian Schmaus 2015-03-04 15:27:30 +01:00
parent b813e3aa9e
commit 183af99ffb
3 changed files with 9 additions and 9 deletions

View file

@ -115,7 +115,7 @@ public class DeliveryReceiptTest extends InitExtensions {
c.processPacket(m);
Stanza reply = c.getSentPacket();
DeliveryReceipt r = DeliveryReceipt.from(reply);
DeliveryReceipt r = DeliveryReceipt.from((Message) reply);
assertEquals("romeo@montague.com", reply.getTo());
assertEquals("test-receipt-request", r.getId());
}