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:
parent
b813e3aa9e
commit
183af99ffb
3 changed files with 9 additions and 9 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue